Even if you don’t already know how to use the command, scp
should be a bit more familiar to you thanks to its similarity to ssh
. The biggest differences come with specifying file/directory paths.
Download file/directory
scp user@ssh.example.com:/path/to/remote/source /path/to/local/destination
scp -r user@ssh.example.com:/path/to/remote/source /path/to/local/destination
Upload file/directory
scp /path/to/local/source user@ssh.example.com:/path/to/remote/destination
scp -r /path/to/local/source user@ssh.example.com:/path/to/remote/destination