I have a machine a couple of hops away, and I need to set up port forwarding in order to transfer files.
Edit: To be clear, the multiple hops are needed in order to access the remote machine. From my machine, I set up a VPN, where I can access 10.255.x.x - that is the only machine I can connect to via the VPN. Once logged into .x.x, I can then connect to other machines - .y.y being one of those.
From my machine:
ssh -L 4567:localhost:4567 firstname.lastname@example.org
Then from that machine:
ssh -L 4567:localhost:22 email@example.com
I can then
scp -P 4567 me@localhost:/path/to/large/file.gz .
I left this running overnite, only to find that the transfer died at some point.
I've seen a couple of suggestions to use rsync over ssh to resume the transfer, but I'm unclear how to set that up. Is this possible?