scp

Updated: 04 April 2024

scp — OpenSSH secure file copy.

Copy a file from B to A while logged into B

scp /path/to/file username@a:/path/to/destination

Copy a file from B to A while logged into A

scp username@b:/path/to/file /path/to/destination

Copy a directory and the contents

scp -r username@the_host:/etc/nginx /home/chris/nginx-conf-backup

Leave a comment