I need a way of copying a file through nested servers, as in
localhost$ ssh user@host1 host1$ ssh host2
where host2 is on an off-site intranet and not directly accessible.
Is there a way of using scp to copy a file to localhost from host2 through host1 in a single command? Or am I stuck first copying the file to host1 first?
Thanks in advance.