I am often in the following situation:
I have two machines, A and B, which are on LANs, and have non-public IP addresses. Machine C is on the same LAN as B, but publicly visible. I would like to copy a file from B to A, so I have to:
- ssh to C
- ssh from C to B
- scp file from B to C
- scp file from C to A
Given that ssl can do wonderful things with tunnelling displays all the way back from B to A via C transparently, it seems like it should be possible to do the same with files.
Is there a way to use standard ssh/scp to copy from B to A, without having to make a temporary copy on C?