From acxx at tuta.io Mon Dec 29 22:50:55 2025 From: acxx at tuta.io (acxx at tuta.io) Date: Tue, 30 Dec 2025 04:50:55 +0100 (CET) Subject: [mosh-devel] Mosh not support connect by socks5/udp proxy? Message-ID: 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: From alex at achernya.com Tue Dec 30 10:32:47 2025 From: alex at achernya.com (Alex Chernyakhovsky) Date: Tue, 30 Dec 2025 10:32:47 -0500 Subject: [mosh-devel] Mosh not support connect by socks5/udp proxy? In-Reply-To: References: Message-ID: 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 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: