20 March 2013

Linux VNC via SSH

UPDATE: See updated version of this post here.


  • On the server: 
    • SSH deamon eg FreeShhd
    • VNCServer e.g. tightvncserver (setup here)
      sudo apt-get update
      sudo apt-get upgrade
      sudo apt-get install tightvncserver
  • On a Windows client:
To setup Putty:
  • Open Putty
  • Enter the ip address, host or domain name of your linux box
  • Click on Tunnels under SSH
  • In Source port enter 5901
  • In Destination enter
  • Click on add
  • Click back to session in tree then specify a name and save
To connect:
  • In putty click open
  • In ssh session run vncserver if not already running e.g. tightvncserver
    tightvncserver :1 -geometry 1024x768
  • Start a VNCViewer, and connect to:
    [IP address]:01
    or through a tunnel:

To end the session:

  • vncserver -kill :1

No comments:

Post a Comment