11 ms·
It's not quite the same to use ssh + screen/tmux. mosh resumes automatically (no need to log in again), and it also will show your keystrokes as you type them,
by wch 14y ago
It's not quite the same to use ssh + screen/tmux. mosh resumes automatically (no need to log in again), and it also will show your keystrokes as you type them, even if the remote machine hasn't yet received them and then sent back to your local machine the updated text. This "buffered" text is displayed with an underline and when your computer receives communication from the server, it gets updated to the correct text. This makes the terminal feel a lot more responsive, in my experience. mosh can also be installed with apt-get, at least in Ubuntu.
- cmer 14y agoThis. I love the predictive typing feature when I ssh oversees. For this feature alone it's worth using Mosh.
- beagle3 14y agoI'll try it for the predictive text ... but, what do you mean "you don't have to login again"? I use a public key login on ssh (so login is invisible), and you can set up your ssh command line in your config file to do so, e.g. I often use ssh beagle3@remote.host -t 'screen -x || screen' And it works beautifully. (I'm heavy screen user, so even if I switch to mosh, there will be screen underneath...)
- gcr 14y agoAccording to the manpage, `screen -DR` will detach the remote screen if it exists and reattach your session. No need to use shell conditionals or ||.
- beagle3 14y agoAh, but I don't want it detached! I often do pair programming or pair sysadminning through screen. Is there an equivalent that works with screen sharing ? ( -x )
- ryan-c 14y agoI have my .profile set up to auto-attach to a default screen session, which works with -x. http://blog.ryanc.org/?p=5 http://blog.ryanc.org/?p=5
- ajtaylor 14y agoI use mosh from our office in Sydney to work on a server on in Vancouver. The character prediction makes this much easier, even if you do see the occasional literal character in a vim session before the server responds. It's so much better than the alternative!