Mosh

From Gentoo Wiki
Jump to: navigation, search
This article is a stub. You can help by expanding it.
Resources

Mosh is a SSH client server that is aware of connectivity problems of the original SSH implementation. Mosh can migrate physical connections and IP addresses while staying connected. Mosh depends on SSH.

Installation

USE flags

USE flags for net-misc/mosh Mobile shell that supports roaming and intelligent local echo

client Build network client
examples Include example scripts
libressl Use dev-libs/libressl instead of dev-libs/openssl when applicable (see also the ssl useflag)
mosh-hardening Enable compiler and linker options to frustrate memory corruption exploits
server Build network server
ufw Install net-firewall/ufw rule set
utempter Include libutempter support

Emerge

Install net-misc/mosh:

root #emerge --ask net-misc/mosh

Configuration

Mosh requires UTF-8 locales to be set in order to run. To check, run:

user $locale -a

In case it does not return the UTF-8 locale see UTF-8#Setting up UTF-8 with Gentoo Linux.

Firewall

Each mosh client requires a free and accessible UDP port between 60000 and 61000 on the server to function.

Usage

Connecting

Once the remote host has SSH running, mosh installed, and the UFT8 locale set connection is possible:

user $mosh user@remote-host.com