This repository was archived by the owner on May 1, 2020. It is now read-only.

Description
This avoids having to worry about other applications using the tunnel port numbers.
Only works with more recent ssh clients than the version on the 2017 BBBK sg release,
so has to wait until the new release for that platform.
Use
- create tunnel on SG:
ssh -f -N -R/tmp/SG-XXXXYYYYZZZZ:localhost:22 ...
- tunnel in from server:
ssh -o ProxyCommand="nc -U /tmp/SG-XXXXYYYYZZZZ" ... bone@localhost (because ssh's -p option doesn't allow for a unix domain socket)
- rsync on data server:
rsync -e "-e 'sshpass -p bone ssh -o ProxyCommand=\"nc -U /tmp/SG-XXXXYYYYZZZZ...\" ...' ..."