Home CV Contact Art Music Apps Misc Search
VNC over SSH
VNC over SSH

This is more of a note to myself then a guide. I have tried and got this to work with TightVNC, RealVNC and UltraVNC. UltraVNC seems to be the preferred one. Note: If you do have a router with firewall, then configure your firewall using WaterRoof and add a new rule to the Static Rules that goes like this:
Protocol: IP Rule Action: Deny Source: not me Port or range: (leave blank) Destination address, subnet, or network: me Port or range: 5900 In, Out, or In/Out: Select the In radio button
To procect your computer from attacks on port 5900. Could be a good idea to do the same for port 88 as well.


Configuring VNC Server on Mac OS X Leopard

  • Apple -> System Preferences -> Sharing -> "Check 'Screen Sharing'"

  • Apple -> System Preferences -> Sharing -> Screen Sharing -> Computer Settings -> "Check 'VNC viewers may control screen with password' and fill in a PASSWORD"

  • Apple -> System Preferences -> Sharing -> "Check 'Remote Login'



Configuring the router D-LINK DIR-635 for SSH

  • Log into D-LINK DIR-635 (http://192.168.0.1 )

  • DIR-635 WEB GUI -> Advanced -> Virtual Server -> "Fill in the (green) local IP-address to you computer with VNC Service and fill in port '22' and press 'Save Settings"



Configuring VNC Client on Windows XP

  • Windows XP -> Start -> Control Panel -> Windows Firewall -> Exceptions -> "Check 'Remote Desktop'"
  • Download Putty.
    (http://www.putty.org )

  • Run Putty.
  • Putty -> Connection -> SSH -> Tunnels -> Source port -> "5900"
  • Putty -> Connection -> SSH -> Tunnels -> Destination port -> "localhost:5900" as for an example: "192.168.0.108:5900"
  • Putty -> Connection -> SSH -> Tunnels -> Destination port -> "Check 'Local'", "Check 'Auto'"
  • Putty -> Session -> Host Name (or IP address) -> "Fill in the external IP-address to the router, under which the VNC Server resides"
  • Putty -> Session -> Port -> "22"
  • Putty -> Session -> Conncetion Type -> "Check 'SSH'"
  • Putty -> Session -> Saved sessions -> "Enter a name and press 'Save'"
  • Putty -> Session -> "Press 'Open' and login."
  • Download TightVNC.
    (http://www.tightvnc.com )

  • Make sure that TightVNC Server is _not_ running.
  • Run TightVNC.
  • TightVNC -> VNC Server -> "Fill in 127.0.0.1"
  • TightVNC -> VNC Server -> "Press 'Connect' and login using the PASSWORD you filled in earlier"
  • Done.


Better the Framerate
The VNC Server on Mac OS X Leopard does not seem to compute lesser colors (even though you change the defaults) so...
  • Download and run VINE Server(http://sourceforge.net/projects/osxvnc )

  • Download and run UltraVNC Viewer (http://www.uvnc.com )

  • UltraVNC Viewer -> "Check '256 Colors'"

  • UltraVNC Viewer -> "Check 'Tight'"

  • UltraVNC Viewer -> "Set 'Viewer Scale by: ' 75%"

  • Done. This will not be pretty, but a little more responsive.



This document was created 090624 and updated 090625.
If you enjoyed this page you might want to have a look at this:
Programming, Some Sort of Curriculum Vitae.