I'm a growing fan of mosh and am increasingly using it when I have unreliable wifi links. What I am trying to figure out is how to build a tunnel through a server which is in a DMZ (connected to internet and firewalled network).
My current solution with ssh is to edit .ssh/config to include lines like:
Host server-behind-firewall
ProxyCommand ssh server-in-dmz nc %h %p
I've also figured out how I can use ssh to do one leg and mosh the other:
ssh -t server-in-dmz mosh server-behind-firewall
Between server-in-dmz and server-behind-firewall I have a rigged up a mosh session using screen.
But what I'd really like to just use mosh from end-to-end. I'd guess that I'd have to rig up server-in-dmz to have a mosh-server listening. But mosh-server's man page says "It will exit if no client has contacted it within 60 seconds."
In short, the question is: how to build a mosh tunnel with multiple hosts?