Live data from Hacker News

Mosh: the mobile shell

mosh.mit.edu

1–10 of 153 posts

Re: Mosh: the mobile shell

#4
post #3

TL;DR: Install on both client and server, for ssh with better usability over mobile networks (3G/4G or spotty WiFi).

Also, you don't need root privileges to install it on the server side. You can just install it into your home directory, and run the client with --server=/home/you/bin/mosh-server. (It uses SSH for connection setup, and then communicates over UDP on a high-numbered port, so it doesn't need any privileged code.)

Re: Mosh: the mobile shell

#6
>SSH waits for the server's reply before showing you your own typing. That can make for a lousy user interface. Mosh is different: it gives an instant response to typing, deleting, and line editing.

This seems asinine. If latency is an issue I want to know it, not be fooled into thinking my input is being interpreted correctly by 'predictions'. Does this mean when I hit 'jjjjjll' in vim, I'm going to see this underlined on-screen in mosh in high-latency situations?

Re: Mosh: the mobile shell

#8

>SSH waits for the server's reply before showing you your own typing. That can make for a lousy user interface. Mosh is different: it gives an instant response to typing, deleting, and line editing. This seems asinine. If latency is an issue I want to know it, not be fooled into thinking my input is being interpreted correctly by 'predictions'. Does this mean when I hit 'jjjjjll' in vim, I'm going to see this underli…

> On a bad connection, outstanding predictions are underlined so you won't be misled.

Having used it, I found it worked very well and i never had a problem with predictions

Re: Mosh: the mobile shell

#9

>SSH waits for the server's reply before showing you your own typing. That can make for a lousy user interface. Mosh is different: it gives an instant response to typing, deleting, and line editing. This seems asinine. If latency is an issue I want to know it, not be fooled into thinking my input is being interpreted correctly by 'predictions'. Does this mean when I hit 'jjjjjll' in vim, I'm going to see this underli…

Only if your recent keystrokes have been getting echoed, and if you haven't done something that might disrupt echo.

> Predictions are done in epochs: when the user does something that might alter the echo behavior — like hit ESC or carriage return or an up- or down-arrow — Mosh goes back into making background predictions until a prediction from the new batch can be confirmed as correct.

Re: Mosh: the mobile shell

#10
"Why use this instead of GNU screen?"

The low latency features really set this one apart. The smart local echo (it underlines unconfirmed predictions) make it much nicer to use over laggy mobile networks.

Post reply on HN