Return to site

Space station 13 scp

broken image

If A has a very old SSH client installed (without -W support), or if B is configured to disallow TCP forwarding (but still allows shell commands), use alternatives: A$ scp -oProx圜ommand='ssh B socat stdio tcp:%h:%p' thefile C:destinationĪ$ scp -oProx圜ommand='ssh B nc %h %p' thefile C:destination Updated to include -W from other answers: A$ scp -oProx圜ommand='ssh -W %h:%p B' thefile C:destination (Behind the scenes, this just uses Prox圜ommand and ssh -W.) Prox圜ommand

broken image

New in OpenSSH 7.3: A$ scp -oProxyJump=B thefile C:destination