4

VNC over an SSH connection

 3 years ago
source link: https://kuttler.eu/code/vnc-over-ssh-connection/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

VNC over an SSH connection

Using a VNC client over an SSH tunnel can be useful. I sometimes use that setup when I have a GUI application running remotely that I don't want to restart. Using VNC I can quickly take control of it.

Raw
$ # 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

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK