This executable can spawn an interactive system shell.
This requires a valid SSH access.
This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
sudo
If there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
sudo VAR=value ...
sudo -E ...
The mosh-server is executed via sudo.
mosh-server
mosh --server=mosh-server localhost /bin/sh
Source | History