In order to ssh into my work computer from home, let's call it C I have to do the following:ssh -t user@B ssh CB is a server that I can connect to from home but C can only be connected to from B.  This works fine.If I want to copy a file that is on C to my home computer using scp, what command do I need from my home computer?
How to scp via an intermediate machine?
linux;ssh;scp
Id suggest the following in your .ssh/config:Host C    User user    ProxyCommand ssh -W %h:%p user@BIt much safer if host B is untrusted, and works for scp and sftp.