by geofft · 13y ago · 0 comments
(And yes, I do regularly use mosh to deal with packet loss over a 3G/4G connection; that's its primary value for me.)
"Pervasive modern firewalls" is an anecdote. Even at cafes and such, mosh works, anecdotally, for me.
We have a firewall rule set up to allow inbound ssh on port 443 to one of our office servers because several of our clients have networks that are so locked down that whenever one of us needs to work from their offices from time to time, it's the easiest way of ensuring they'll have ssh access...
Cafe's are not a good example. Cafe-run public wifi tends to be some of the least secured internet access you can find.
In practice, and merely anecdotally on my part, I can attest that screen "feels" slower than a shell when I'm using it via SSH.
One of mosh's advantages is that it does screen rendering on the server, and then synchronizes the screen with the client. So, if there's been ten screenfuls of outputs, and those packets were lost or delayed or the connection couldn't keep up, the client only needs to receive what's currently on the screen. (This doesn't work in the other direction, but there's typically a lot less traffic in that direction.)
You can't quite do that with X, since the X protocol itself involves no way to get / diff / synchronize the contents of the screen -- it involves a bunch of rendering operations, so if there's a delay, it needs to re-send those operations.
Still, there's an open ticket: https://github.com/keithw/mosh/issues/41