MOSH(1)
π MOSH(1) β mosh-client, the client-side helper bestie π
okay so real talk, this is the manual page for mosh-client, the client-side helper for mosh. she's the little icon that does the actual terminal work while the mosh script out here doing the logistics. periodt. β¨
πΈ NAME πΈ
mosh-client β client-side helper for mosh, no cap π
π SYNOPSIS π
MOSH_KEY=KEY mosh-client [-v] IP PORT
mosh-client -c
like, those are the two ways you call her. pick your fighter. π
β¨ DESCRIPTION β¨
so. mosh-client is a helper program for the mosh(1) remote terminal application. she's not the main character exactly, but bestie, she is literally running for the whole connection, so.
mosh itself is a setup script. what it does is:
- establishes an SSH connection π
- runs the server-side helper
mosh-serverπ - collects the server's port number and session key π
then mosh executes mosh-client with the server's IP address, port, and session key. and mosh-client just... runs. for the lifetime of the connection. she's committed like that. π«Ά
the 22-byte base64 session key that mosh-server hands over gets supplied in the MOSH_KEY environment variable. that key represents a 128-bit AES key that protects the integrity and confidentiality of the session. so like, it's kind of a big deal. π
if you're out here constructing new setup wrappers for remote execution facilities other than SSH, it may be necessary to invoke mosh-client directly. so she's not just a helper, she's a building block. main character energy honestly. π
with the -c option, mosh-client instead prints the number of colors of the terminal given by the TERM environment variable. cute little color vibe check. π¨
the -v option will print some debugging information on standard error. more instances of this flag = more debugging information. stack 'em. π₯
β οΈ okay listen, important: if standard error is not redirected from the terminal, the display will be corrupted and quickly become unusable. like, your whole screen. gone. π don't do that.
π ENVIRONMENT VARIABLES π
MOSH_KEYβ this variable must be set, and must contain a Base64-encoded cryptographic key frommosh-server(1). non-negotiable bestie, she will not run without it. ποΈMOSH_ESCAPE_KEYβ seemosh(1). π¦MOSH_PREDICTION_DISPLAYβ controls local echo as described inmosh(1). β¨MOSH_PREDICTION_OVERWRITEβ controls local echo insert/overwrite as described inmosh(1). βοΈMOSH_TITLE_NOPREFIXβ seemosh(1). π
π SEE ALSO π
project home page: https://mosh.org π
π AUTHOR π
mosh was written by Keith Winstein <mosh-devel@mit.edu>. we love an icon. π
π BUGS π
please report bugs to <mosh-devel@mit.edu>. users may also subscribe to the <mosh-users@mit.edu> mailing list, at http://mailman.mit.edu/mailman/listinfo/mosh-users π¬
and that's the whole page bestie π this version is dated February 2012 and it's from the General Commands Manual β so like, retro but still slaying. mwah. πβ¨π¦
π¦ where this page comes from
- alpine 3.22: mosh-client-doc 1.4.0-r14 Β· GPL-3.0-or-later
- alpine 3.23: mosh-client-doc 1.4.0-r18 Β· GPL-3.0-or-later
- alpine 3.24: mosh-client-doc 1.4.0-r18 Β· GPL-3.0-or-later
- arch rolling: mosh 1.4.0-35 Β· GPL-3.0-only
- debian bookworm: mosh 1.4.0-1+b1 Β· GPL-3.0-or-later WITH OpenSSL exception
- debian trixie: mosh 1.4.0-1+b2 Β· GPL-3.0-or-later WITH OpenSSL exception
- epel 10: mosh 1.4.0-7.el10_0 Β· GPL-3.0-or-later
- epel 9: mosh 1.4.0-1.el9 Β· GPLv3+
- fedora 43: mosh 1.4.0-9.fc43 Β· GPL-3.0-or-later
- fedora 44: mosh 1.4.0-10.fc44 Β· GPL-3.0-or-later
- nixos 26.05: mosh 1.4.0
- nixpkgs unstable: mosh 1.4.0
- opensuse-leap 16.0: mosh 1.4.0-bp160.1.1 Β· GPL-3.0-or-later
- opensuse-leap 16.0: mosh 1.4.0-bp160.1.1 Β· GPL-3.0-or-later
- opensuse-leap 16.0: mosh 1.4.0-bp160.1.1 Β· GPL-3.0-or-later
- opensuse-leap 16.0: mosh 1.4.0-bp160.1.1 Β· GPL-3.0-or-later
- ubuntu noble: mosh 1.4.0-1ubuntu3 Β· GPL-3.0-or-later WITH OpenSSL exception
- ubuntu questing: mosh 1.4.0-1ubuntu4
- ubuntu resolute: mosh 1.4.0-1ubuntu5 Β· GPL-3.0-or-later WITH OpenSSL exception
- ubuntu stonking: mosh 1.4.0-1ubuntu6 Β· GPL-3.0-or-later WITH OpenSSL exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms