How to speed up X over SSH on a slow network connection?

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?

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

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

Method 2

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…

Method 3

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.

Method 4

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.

https://www.psc.edu/hpn-ssh

Method 5

X2Go will solve your problem. I’m accessing a raspberry pi in Argentina from Silicon Valley. There’s a slight delay but it’s as comfortable to work on as my desk computer.

VNC is your second choice.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x