Category Archives: remotevnc

>Remote VNC via SSH tunnel

>Quick tip: To use VNC through an SSH tunnel, make SSH bind to a local port while connecting it to a remote port. Then just connect your VNC master application to the local port.

Setting up an SSH tunnel goes as follows:

ssh -N -Llocalport:remoteip:remoteport intermediate_machine

For example, if you have a remote machine at behind a server you can connect to with SSH, do:

ssh -N -L5900:

Press Ctrl-C to kill the tunnel.