This specific content was written 13 years ago.
Please keep this in mind as it may be outdated and not adhering to best-practices.
You may want to connect to a headless/monitorless linux pc with a vnc server running that only exposes an SSH port.
I have used the following steps from windows.
- Server:
Run VNCServer
If not running already start your server. You can set the resolution using -geometry tag. This will open a new port/session.
vncserver -geometry 1920x1200
- Workstation:
Create the tunnel to VNC portThis maps the local pc port 5905 to localhost:5905 on the remote machine. VNC uses ports 5901 to 5909.
ssh -L 5905:localhost:5905 [email protected] -p 22
- WorkStation:
Create tunnel if needed of X-Server
ssh -L 6005:localhost:6005 [email protected] -p 22
Jan 1 2014
Tunneling to VNC over SSH
You may want to connect to a headless/monitorless linux pc with a vnc server running that only exposes an SSH port.
I have used the following steps from windows.
Run VNCServer
If not running already start your server. You can set the resolution using -geometry tag. This will open a new port/session.
Create the tunnel to VNC portThis maps the local pc port 5905 to localhost:5905 on the remote machine. VNC uses ports 5901 to 5909.
Create tunnel if needed of X-Server
By Menelaos Bakopoulos • Linux, Servers (*ix , scripting) 0 • Tags: remote, ssh, vnc