Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 16th October 2008, 16:59
blocker blocker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 177
Thanks: 9
Thanked 4 Times in 4 Posts
Question 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!
Reply With Quote
Sponsored Links
  #2  
Old 16th October 2008, 20:45
marpada marpada is offline
Senior Member
 
Join Date: Sep 2008
Posts: 139
Thanks: 2
Thanked 14 Times in 14 Posts
 
Default

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.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH tunnel hep warkry Server Operation 2 21st April 2008 17:13
Configure VNC from remote CLI SoMBS Technical 1 16th September 2007 15:38
SSH DIED - Virtual Users And Domains With Postfix, Courier And MySQL herbie HOWTO-Related Questions 2 12th December 2006 02:16
Gnome and VNC problems tommywds Desktop Operation 1 7th September 2006 19:03
SSH port forwarding (SQLYog Tunnel) mastorna Server Operation 0 22nd June 2006 01:16


All times are GMT +2. The time now is 17:37.


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