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.

File resolv.conf changed on reboot

The file /etc/resolv.conf was being reset and losing the correct nameserver on my Raspberry Pi after a reboot. The unfriendly way of fixing ...