MOSH(1) | General Commands Manual | MOSH(1) |
mosh-server - server-side helper for mosh
mosh-server new [-s] [-v] [-i IP] [-p PORT[:PORT2]] [-c COLORS] [-- command...]
mosh-server is a helper program for the mosh(1) remote terminal application.
mosh-server binds to a high UDP port and chooses an encryption key to protect the session. It prints both on standard output, detaches from the terminal, and waits for the mosh-client to establish a connection. It will exit if no client has contacted it within 60 seconds.
By default, mosh-server binds to a port between 60000 and 61000 and executes the user's login shell.
On platforms with utempter, mosh-server maintains an entry in the utmp(5) file to indicate its process ID, whether the session is connected, and the client's current IP address.
mosh-server exits when the client terminates the connection.
The argument "new" must be first on the command line to use command-line options.
These variables allow server-side configuration of Mosh's behavior. They may be set by administrators in system login/rc files, /etc/login.conf, or similar mechanisms, or users in their shell's login/rc files. mosh-server passes these variables to the login session and shell that it starts, but changing them there will have no effect.
$ pkill -SIGUSR1 mosh-server
to kill disconnected sessions without killing connected login sessions.
$ mosh-server MOSH CONNECT 60001 UAkFedSsVJs2LfMeKyQB5g mosh-server (mosh 1.1) [...] (copyright notice omitted) [mosh-server detached, pid = 20443]
Project home page: https://mosh.org
mosh was written by Keith Winstein <mosh-devel@mit.edu>.
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
October 2012 |