rasti.hil@hilandco.com +41 79 367-9677

Thursday, 22 January 2009

SSH tuneling: it's easy

Often the remote computer I want to operate is firewalled so it only possible to connect over port# 22.
Here is a simple description how to make an ssh tunel:
ssh -f user@remote-machine.com -L localport#:remote-machine.com:remoteport# -N

-f run in background;
-L localport#:remote-machine.com:remoteport# which local port will be connected to wich remote port.
-N instructs OpenSSH to not execute a command on the remote system.

No comments: