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.
Asked
Active
Viewed 3 times