TightVNC has a '-via' option that allows using a gateway through the client and the VNC server. TightVNC with this option can use a 'host in the middle' (gateway) to access another host. The VNC_VIA_CMD defines the ssh options to access the gateway. Example:: host A access host C through host B. A and B have a public IP, but C is behind B. A can access B with ssh. export VNC_VIA_CMD='/usr/bin/ssh -2 -x -p -l -f -L %L:%H:%R %G sleep 20' vncviewer -via true life example:: foo --> gateway.bar.com --> 192.168.1.36 foo> export VNC_VIA_CMD='/usr/bin/ssh -2 -x -p 55 -l foo -f -L %L:%H:%R %G sleep 20' foo> vncviewer -via gateway.bar.com 192.168.1.36 links : - http://www.vanemery.com/Linux/VNC/vnc-over-ssh.html charcode test: - & - & - &