I must transfer several huge files from a remote machine A to my local computer. The problem is that I can not access A directly, but instead I must access via another remote machine B. Unfortunately, machine B has a very limited amount of space, so I can not copy the files from A to B and then from B to local. Instead, I would need to use B as a kind of proxy.
I was thinking in something as simple as possible that does not need to install or configure anything, hopefully simply using sftp
, scp
o ssh
.
Does anyone know how to do that?
Solved! After looking into pLumo's suggestions, I found that
sftp -o "ProxyJump userB@serverB" userA@serverA
did the trick! Thanks a lot!