[mosh-users] How can I mosh over multiple hops (for example, via tunnel or ProxyCommand)?
Vincent Lefevre
vincent-mosh at vinc17.net
Fri Mar 28 10:44:12 EDT 2014
On 2014-03-28 15:56:51 +0200, David Seaward wrote:
> I have a system that I can only access via multiple ssh logins. I
> recently found out about using ProxyCommand [1] or SSH tunnels [2] to
> make the connection transparently. Is it possible to mosh instead, and
> if so, how?
I'm in the same case. I think there are two solutions.
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:
2. Use mosh to connect to a server X with a permanent connection,
then ssh on the other side. This is what I currently do, and even
something like:
mosh SSH[*]
Mobile -----> screen on server X ----> Host A
----> Host B
----> Host C
[*] possibly with ProxyCommand.
Now I'm wondering whether mosh could be used in some reverse mode,
e.g. because one side is a smartphone (which can move and can be
behind a firewall), the other side is a laptop (which can also move
and can be behind a firewall), with a possible use of a server with
a permanent connection in the middle.
--
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
More information about the mosh-users
mailing list