Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Are there any specific recommendations on speeding up X applications over ssh on a slow network connection? In this specific case, I am accessing a server located in west coast from a laptop in east coast and that too on a not too fast DSL connection.

Any settings for ssh? Any tips in general?

share|improve this question

4 Answers 4

up vote 12 down vote accepted

You will probably see the most major benefits by using compression using the -C option. You can also enable it in your sshd_config by using the following line:

Compression yes
share|improve this answer
If connection round-trip time is high then compression does not help much. Standard X protocol, with its multitude of ping-pong messages, is not suitable for routes with noticeable RTT. –  Linulin Sep 20 '11 at 20:48
That's just the nature of the protocol we're dealing with. The questioner has stated he cannot change the SSH server running, so this is the superior clientside option assuming nothing can be done to the server. –  Chris Down Sep 20 '11 at 20:52
One some sites it is also reported to use a simple and fast chiper e.g. blowfish: ssh -X -C -c blowfish-cbc,arcfour $hostname –  math Feb 20 '13 at 20:24
There is a similar question, recommending additional options: superuser.com/questions/400136/speeding-up-remote-x-sessions –  math Feb 20 '13 at 20:32

If you have the option, try and test NX (although it is a pain to get going) as it will feel far faster than tunnelling X over ssh...

share|improve this answer
NX by default works over an ssh tunnel as well. So you don't have to worry about opening any other ports. –  wm_eddie Sep 20 '11 at 10:22
NX is actually super fast. Better than VNC, better than compression over X. Works sweet. –  vivekian2 Sep 21 '11 at 16:25
I would actually mark this the right answer for someone who can launch NX on the server side. Not all UI features are available (atleast on gnome), but the speed is worth it. –  vivekian2 Sep 21 '11 at 20:31
Never tried NX but VNC is a good alternative to SSH -X –  baptx Jul 25 '14 at 18:20

It's been a while since I tried it, but DXPC (Differential X Protocol Compression) used to make X11 over dial-up PPP work noticeably faster. Perhaps the SSH compression option will work better for you, but this compression is specific to X11 and just might work faster.

share|improve this answer

It may be worth investigating high performance openssh. For security reasons, openssh uses static buffers in many places. The HPH-SSH project re-implements bits of it to use dynamic buffers. It also seems that they've implemented multi-threaded ciphers in recent revisions.


share|improve this answer
Does this require changes on ssh server running on the server side? Its possible that is something I can't control. –  vivekian2 Sep 19 '11 at 19:27
No, it doesn't. From the page: > We have created a patch that will remove the bottlenecks in OpenSSH and is fully interoperable with other servers and clients. In addition HPN clients will be able to download faster from non HPN servers –  jmtd Sep 21 '11 at 13:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.