scp files via intermediate host
Problem
I have access to 3 machines, A, B, and C. The only possible (ssh) connections are: I need to get files from A to C, so I could scp the files from A to B, and then scp them from B to C. However, B doesn't have much disk space, so this is not an option. Is there a way to scp files from A to C via B? Note, I don't have root access on any of the machines, so don't think I can set up any persistent tunnels, but correct me if I'm wrong!
Error Output
A -> B B <-> C
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: scp files via intermediate host
ProxyJump New in OpenSSH 7.3: (Behind the scenes, this just uses ProxyCommand and .) ProxyCommand Updated to include -W from other answers: If A has a very old SSH client installed (without support), or if B is configured to disallow TCP forwarding (but still allows shell commands), use alternatives: Pipes For just one file: "Tunnel" through B When you're done, don't forget to kill the previously started process (which has dropped to background due to ). Requests ssh to go to background just be…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix