3
3
I have noticed that on my office's network, multi-hop SSH connections using the "pseudo-tty" method perform better (see last note) than using the "forwarding" method. Why would this be the case?
In other words, why would:
ssh -A -X -tt server1 ssh -X -tt server2 # pseudo-tty
result in much better performance than:
ssh -o ‘ProxyCommand=ssh -A -X -W %h:%p server1’ -X server2 # forwarding
?
Other notes:
- I'm on my laptop, and server1 and server2 have the same hardware.
- On my laptop, I've got Windows 7 with Cygwin's ssh and xwin. It has a decent processor (i7 4610M or similar).
- Both server1 and server2 are RHEL 6.5.
- I haven't measured bitrate, but X11 apps are significantly faster with the pseudo-tty method (there's visible delay with forwarding).
Can you give it a try with native windows version? I know that Cygwin does quite enough of magic to emulate various Linux stuff and I believe there will be some of it for X forwarding. – Jakuje – 2016-01-01T18:53:04.907
Have you tried automatic proxy as well, that should have less overhead than your both other options. I am not sure why there should be much difference between your mentioned two methods. – eckes – 2017-06-05T09:26:37.937