I have local machine (L) and a remote machine (R) which is only reachable by hopping over (A), (B).For transvering a file my normal routine looks likes this:l@L$ ssh -t a@A ssh -t b@B ssh r@Rr@R$ # do some stuff till I find out I want to copy file x to LI then open a new terminall@L ssh a@Aa@A ssh b@Bb@B scp r@R:PATH_TO_FILE a@A:TEMPb@B <ctrl-D> to closea@A scp TEMP r@R l@L:FINAL_DESTINATIONand scp my file over all the hops.I wonder if there is a shell extension or program which would allow to copy files directly from R. Something akin of piping stdout@R to stdin@L to cat it. It doesn't have to be terribly efficient. As most of the time my files are small (<100kB), but it needs to support binary.
shell extension or program to transfer data from remote machine to local and vice versa
linux;bash;shell;ssh;tcsh