Linux: SCP Usage

I always forget the Secure copy (scp) syntax. This is to remember…

Download the “file.txt” from a remote host to the local host:

scp username@remotehost.tld:/a/remote/directory/file.txt /a/local/directory

Upload the “file.txt” from the local host to a remote host:

scp /a/local/directory/file.txt username@remotehost.tld:/a/remote/directory
This entry was posted in BSD, Linux, Server and tagged , , , . Bookmark the permalink.