We have the following situation:
- My machine
- A gateway machine
- The target machine
I have no root rights on both #2 and #3. I can also not really store information (no more then 200 MiB) on machine #2 (since it is ment to be a gateway into the rest of the network, not more then that). On machine #3 there is a folder, about 3 GiB in size, that I want to copy to local. I cannot SSH from #1 to #3, but I can SSH to #2 and then to #3. It is also not possible to set up a public private keypair between #2 and #3, but there is a keypair installed between #1 and #2.
Normally I use the combination of SSH and tar to get this done:
ssh name@host "tar cf - folder" > folder.tar
But in this case that would require some sort of nesting, and I cannot seem to get this done.
So, what would be a good way to get the data from #3 to #1?