HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   VNC over SSH tunnel optimization (http://www.howtoforge.com/forums/showthread.php?t=27857)

blocker 16th October 2008 16:59

VNC over SSH tunnel optimization
 
Hello,

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:
Code:

tightvncserver -geometry 800x600 -depth 15 :1
xstartup:
Code:

#!/bin/sh
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:
Code:

ssh -f -N -L 5901:localhost:5901 username@server
Thanks!

marpada 16th October 2008 20:45

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).

Quote:

-C Requests compression of all data (including stdin, stdout,
stderr, and data for forwarded X11 and TCP connections). The
compression algorithm is the same used by gzip(1), and the
“level” can be controlled by the CompressionLevel option for pro‐
tocol version 1. Compression is desirable on modem lines and
other slow connections, but will only slow down things on fast
networks.
The default value can be set on a host-by-host basis
in the configuration files; see the Compression option.


All times are GMT +2. The time now is 09:03.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.