Mosh
From Gentoo Wiki
Jump to:navigation
Jump to:search
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
+hardened
Activate default security enhancements for toolchain (gcc, glibc, binutils)
+server
Build network server
+utempter
Include libutempter support
examples
Include example scripts
nettle
Use dev-libs/nettle for some cryptographic functions instead of dev-libs/openssl. With Nettle, some of mosh's own code is used for OCB.
syslog
Enable support for syslog
ufw
Install net-firewall/ufw rule set
Data provided by the Gentoo Package Database
·
Last update: 2026年05月27日 16:20
More information about USE flags
Emerge
Install net-misc/mosh :
root #emerge --ask net-misc/moshConfiguration
Mosh requires UTF-8 locales to be set in order to run. To check, run:
user $locale -aIn 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.
With Ufw, allow these ports with:
root #ufw allow 60000:61000/udpUsage
Connecting
Once the remote host has SSH running, mosh installed, and the UFT8 locale set connection is possible:
user $mosh user@remote-host.comSee also
- ssh — the ubiquitous tool for logging into and working on remote machines securely.
Retrieved from "https://wiki.gentoo.org/index.php?title=Mosh&oldid=1172927"