Once I've ssh'd into my remote server, what would the command be to copy all files from a directory to a local directory on my machine?
Copying files using rsync from remote server to local machine
rsyncssh
Related Topic
- Is it possible to specify a different ssh port when using rsync
- Bash – How to specify the private SSH-key to use when executing shell command on Git
- Linux – Pseudo-terminal will not be allocated because stdin is not a terminal
- How to copy a directory from local machine to remote machine
- SQL select sum from other table as a column via junction table
Best Answer
From your local machine:
From your local machine with a non standard ssh port:
Or from the remote host, assuming you really want to work this way and your local machine is listening on SSH:
See
man rsync
for an explanation of my usual switches.