$ # SSH and open a tunnel for the VNC connection $ ssh -C -L 5900:localhost:5900 example.com $ # Start the VNC server on example.com (apt-get install x11vnc) $ x11vnc -display :0 $ # On the local machine (apt-get install xtightvncviewer) $ vncviewer localhost