Reverse SCP over SSH connection

Posted by pavpanchekha on Super User See other posts from Super User or by pavpanchekha
Published on 2011-03-19T04:47:27Z Indexed on 2011/03/19 8:12 UTC
Read the original article Hit count: 224

Filed under:
|

I pretty often need some file from some server when I'm on my laptop. But if I don't know where that file is, I have to ssh into the server, look around, exit, and then scp server:file .. If I'm working with my desktop and my server, both of which have static IPs, I can just SCP the file in reverse (scp desktop:~ file), but I can't do that for my laptop. Is there any nice way to SCP a file backwards over an SSH connection? So that the computer I connect to with SSH sends a file backwards to the client?

© Super User or respective owner

Related posts about ssh

Related posts about scp