VNC over SSH tunnel optimization

Discussion in 'Server Operation' started by blocker, Oct 16, 2008.

  1. blocker

    blocker Member


    I have setup ssh tunnel from a linux workstation to a linux server to use secure VNC. It works so far good, the only problem is that it is a bit slow. I would like to ask you for suggestion on optimizing the the tunnel and/or the vnc server. Both computers have enough cpu power and very fast internet connections, so it would not be a problem if the optimization includes high cpu usage or high broadband usage...

    here are my configs:

    VNC server is started with the following options:
    tightvncserver -geometry 800x600 -depth 15 :1
    xrdb $HOME/.Xresources
    xsetroot -solid grey
    x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
    gnome-session &
    the ssh tunnel gets started from the workstation with the following options:
    ssh -f -N -L 5901:localhost:5901 username@server
  2. marpada

    marpada New Member

    You can try using flag -C in ssh for compression (read the man page warning). Maybe you connection is slow because your ISP is doing traffic shaping, you could also try to tunnel to another port (443).


Share This Page