Live data from Hacker News

Mosh: the mobile shell

mosh.mit.edu

31–40 of 153 posts

Re: Mosh: the mobile shell

#31
post #26
post #21

I have mostly gone back to plain ssh. mosh was fantastic for keeping a connection running across network changes and when accessing a plain command line it does feel a bit snappier on slow connections. But screen or tmux give me persistence and re-establishing an ssh connection isn't very time consuming. A terminal multiplexer has a lot of advantages that mosh does not provide. mosh adds another layer of terminal emu…

Why not just use mosh to establish & maintain the connection then then use tmux/screen to manage the terminal sessions?

Also wondering this. Why not both?

Re: Mosh: the mobile shell

#32

Termux[0], the best Android terminal emulator (in my humble opinion), recently had mosh added to its' package repository. I currently use it and it's very nice. It makes me long for a better handheld though (my 4" Moto G screen is difficult to type on, even with Hacker's Keyboard). I can have tmux sessions running on servers with say, an irc client running, mosh in, chat away for a bit, turn it off, the irc client co…

I'm running Termux on a Pixel C and I love it. With the keyboard and all it's the Linux experience i wan't on the go. Local compiling works real nice for Go applications and smaller C++ and C stuff. Or Node.JS, Python and whatnot.

It's also available from F-Droid, though i recently became aware, that somehow I only had the ARM version and not AArch64, so keep that in mind. And it also works flawlessly on N.

Re: Mosh: the mobile shell

#33

"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.

I would say they're mostly orthogonal. I use mosh and screen.

Exactly. Mosh for instantly resuming my connection, screen for resuming my sessions (and adding scrollback and such)

Re: Mosh: the mobile shell

#35

Earlier quoted context omitted.

My solution to that is to run mosh on top of screen. tmux would also work.

Is mosh on top of screen or is screen on top of mosh? Serious question, since I share parent's love of mosh and frustration with the lack of scrollback.

Mosh to the server, then run screen/tmux there. You'll have to use the scroll features of screen/tmux. Running your stuff inside of screen/tmux is useful in any case.

Re: Mosh: the mobile shell

#36
post #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.)

Anyone know if the UDP packets are encrypted?

Re: Mosh: the mobile shell

#37
post #31
post #26

Earlier quoted context omitted.

Why not just use mosh to establish & maintain the connection then then use tmux/screen to manage the terminal sessions?

Also wondering this. Why not both?

That's what I do. My laptop moshes into a tmux. It's like I'm just always connected to my servers; the network is abstracted away. Mosh even has a very useful "7 seconds since connection dropped" message for when the café WiFi lags etc.

Re: Mosh: the mobile shell

#39

Termux[0], the best Android terminal emulator (in my humble opinion), recently had mosh added to its' package repository. I currently use it and it's very nice. It makes me long for a better handheld though (my 4" Moto G screen is difficult to type on, even with Hacker's Keyboard). I can have tmux sessions running on servers with say, an irc client running, mosh in, chat away for a bit, turn it off, the irc client co…

Know of anything similar which supports android gingerbread? I'm using JuiceSSH now but I would love something with package management features like this.

Re: Mosh: the mobile shell

#40
Mosh is great, but I kind of stopped using it once I discovered Tmux so I could resume a session if the connection dropped.

It's not that Mosh does anything wrong, but SSH has more features, and is supported by basically everything ever. Consequently, I stick with old-school SSH.

Post reply on HN