[mosh-devel] Mosh not support connect by socks5/udp proxy?
Alex Chernyakhovsky
alex at achernya.com
Tue Dec 30 10:32:47 EST 2025
Hi,
That is correct. Mosh does not support SOCKS UDP proxy. Mosh only uses ssh
for the initial authentication, then switches to its own direct
communication with the learned IP. If you need to access a server behind a
firewall a VPN will work with mosh.
Sincerely,
-Alex
On Mon, Dec 29, 2025, 10:50 PM <acxx at tuta.io> wrote:
> Hi,
>
> I want to connect a ssh server(which installed mosh) by a socks5/udp
> server.
>
> *I use ssh to connect server is ok:*
> ssh -o 'ProxyCommand nc -x 127.0.0.1:1080 %h %p' root at server-ip
>
> *But mosh can not connect as 4 cmd:*
> mosh --ssh="ssh -o ProxyCommand='nc -x 127.0.0.1:1080 %h %p'"
> root at server-ip
> mosh --ssh="ssh -o ProxyCommand='nc -x 127.0.0.1:1080 %h %p'"
> --experimental-remote-ip=proxy root at server-ip
> mosh --ssh="ssh -o ProxyCommand='nc -x 127.0.0.1:1080 %h %p'" -p 60001
> root at server-ip
> mosh --ssh="ssh -o ProxyCommand='nc -x 127.0.0.1:1080 %h %p'" -p 60001
> --experimental-remote-ip=proxy root at server-ip
>
> *I also make sure socks5 proxy support udp: test by socat and other tools.*
> *I'm very sure proxy server support socks5/udp.*
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mit.edu/pipermail/mosh-devel/attachments/20251230/7aa2206c/attachment.htm>
More information about the mosh-devel
mailing list