Monday, 19 December 2011

SSH Tunnel command

Command to setup the tunnel
ssh -N -p 11000 -L 5901/localhost/5900

To view from Local computer

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.

No comments:

Post a Comment

BT Infinity Finally!

I have finally received super-fast broadband and it was enabled on Wednesday morning around 10am. I never noticed till a day later when I lo...