It's the same with mosh. Normally i use tmux on the destination host, and i simply cannot see any reason to use mosh over ssh/tmux.
How about automatic session resumption and predictive character insertion to improve typing when under latency?
tmux a
As for predictive character insertion, when i'm working in a shell, especially with high latency, i prefer my commands to be as i type them, not something some algorithm "guessed" i was going to type.In other words, imagine typing ssh somebox.typo.com and waiting 1 second before the text renders and discovering the typo, then pressing backspace, waiting a while for the backspaces to render, then going through all of this again. With mosh you'll be able to instantly see what you typed and fix it. On high latency connections it makes a huge difference in quality of life.
Basically for those with experience of text terminals genrally: local echo.
Everything there connected via serial ports, remote offices got multiplexed over a 9600 baud connection. Back then we had local echo for the sometimes slow link, i.e. printing a spreadsheet converted to 3Mb PostScript, and still only 9600 baud in total.
So i know what local echo is. It has nothing to do with prediction :)
I'm still not convinced about mosh, but it sounds like it really does help a lot of people, so who am i to judge. I guess i'm privileged since i don't usually experience latency. We have about 95% 4G coverage in this country, coupled with fiber connections.
The last time i experienced any noticeable latency was when editing files on a clients SCO OpenServer across The Atlantic Ocean over a 1200 baud connection.
As well as that and protecting unencrypted traffic on public WiFi, I get my ad blocker & other protection and credit card payments are smoother as the payment processors think I am at home not coming from some random address so doesn't ask for extra security details as often as they otherwise would.
Not precisely, because you're sometimes predicting whether a keypress should be rendered as a letter on the screen or not (e.g. if you click 'j' in vim command mode it doesn't actually print j). mosh, at least from my experimentation, seems smart enough to do that reliably.
We also never have enough players for the latest FPS games that require low latency :(
It works well WITH tmux, not instead of tmux.
Which means your solution would be something like:
while true; do
ssh -t ${HOST} tmux a
done
But that lacks the other benefits, especially having to wait for the session to timeout.. Take a look at:
https://en.wikipedia.org/wiki/Mosh_(software)#Performancehttps://www.everythingcli.org/ssh-tunnelling-for-fun-and-pro...
Someone else opened an issue requesting that: https://github.com/davrodpin/mole/issues/22
It also has aliases to store configuration that user usually use, but that is comparable to the ssh config file.