0

I have been following the discussion What is the cleanest way to ssh and run multiple commands in Bash? on how to run commands on a remote host via ssh - I would like to know once this connection is made, how can I transfer files back to the localhost from the remote host? In my scenario, I am creating a tar.gz on the remote host which is needed to be brought back to the localhost and then sent to another remote host for backup.

Kodi Koo
  • 1
  • 1
  • Would the technique in [this superuser answer](https://superuser.com/questions/1648179/how-to-connect-to-ones-local-machine-when-on-the-remote-for-use-with-sftp/1648422#1648422) help? – Gordon Davisson May 30 '21 at 05:56

0 Answers0