[GTALUG] for multi-hop ssh/scp: option "ProxyJump"

Anthony de Boer adb at adb.ca
Mon Aug 31 10:58:55 EDT 2020


D. Hugh Redelmeier via talk wrote:
> [away] $ ssh -A gw scp -p home:f .
> [away] $ scp -p gw:f .
> [away] $ ssh -A gw rm f

$ ssh -A gw "mkdir home && sshfs home:/home/hugh home"
$ scp -p gw:home/f .

You should be able to set up the sshfs mount once per reboot of gw
and/or home (which were probably plugged into the same UPS anyway!)
and this saves having to have local disk on gw and cleaning up all the
files staged through it.

(Note there's also the issue of whether a solution where "home" trusts
"gw" is sufficient vs a solution where they don't trust each other and
"gw" just tunnels an encrypted connection from "away" to "home". Also,
you could use the proxy pipe to sshfs-mount "home" directly to "away"
but in my experience the Internet isn't stable enough to want to depend
on long-lived connections. Next, to look into sshfs-over-mosh?)

-- 
Anthony de Boer


More information about the talk mailing list