Monday, 19 December 2011

SSH Tunnel command

Command to setup the tunnel
ssh -N -p 11000 remoteuser@remotecomputer.net -L 5901/localhost/5900

To view from Local computer
vncviewer 127.0.0.1:1

So the first command sets up the tunnel from the local machine to the remote computer using port 11000. The 5901 port on the local machine is forwarded to the 5900 port on the remote machine. Now when you use your local machine to connect to port 5901 on the localhost this allows you to connect to the vnc server on the remote machine via the port 11000 tunnel.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home