[mosh-users] How can I mosh over multiple hops (for example, via tunnel or ProxyCommand)?

David Seaward dseaward925 at gmail.com
Fri Mar 28 11:08:00 EDT 2014


Ah, this is more complicated than I thought :D

I thought it was going to be one of:

a) mosh-client - ssh - ssh - mosh-server

...where "ssh - ssh" may be some kind of transparent hop, or

b) mosh-client - mosh-? - mosh-? - mosh-server

...with funky configuration on the hops.


On Fri, Mar 28, 2014 at 5:04 PM, Mark Stillwell <marklee at fortawesome.org> wrote:
>
>> 1. Use a UDP packet repeater.
>>
>> http://serverfault.com/questions/390916/mosh-tunnel-via-proxy
>> suggests stone. I'm wondering whether socat or netcat could be
>> used as well. But such a tool needs to be installed on the
>> gateway. So, I'm suggesting a second solution:
>
>
> I've tried this with both socat and stone, using one of these tools to go
> from udp to tcp, then forwarding the tcp connection with ssh, then
> translating back from tcp to udp on the other side of the connection. It
> works great for 10-15 seconds, then mosh invariably freezes up and starts to
> complain about tampering.
>
> Based on debug output from stone, I think that mosh tries to send some udp
> packets that are too big to fit into a single tcp packet within the ssh
> tunnel, and somehow when ssh puts everything back together on the other end
> it must not do it perfectly, triggering mosh's alarm bells.
>
> --
> Mark Lee Stillwell
> marklee at fortawesome.org
>
> _______________________________________________
> mosh-users mailing list
> mosh-users at mit.edu
> http://mailman.mit.edu/mailman/listinfo/mosh-users
>


More information about the mosh-users mailing list