Command mosh is an alternative wrapper to mosh-client command that plays
well with socks proxies.
It only exists because of this bug in original mosh, which make mosh ignore ProxyCommand
that I use to access restricted sites via socks proxy.
This mosh
allows to use mosh in setups where initial ssh connection to start mosh server can only be done via socks5 proxy specified as ALL_PROXY=socks5://host:port
.
Supported environment variables:
MOSH_USER
— default user when doing ssh connection;
MOSH_PORTS
- port or colon-separated port range to start mosh-server with.
Authentication is performed using ssh-agent, its socket is expected to be available at SSH_AUTH_SOCK
.
LICENSE: MIT