--- layout: page category-page: intermediate category-title: Intermediate commands tags: ssh copy file secure author: Announ Marwan title: scp --- The scp command name stands for Secure CoPy.
As the name suggests it's similar to the cp command, with the main difference being that while cp is used to move files in a local machine, scp will also operate on the remote systems.
The syntax is similar to the one of the cp command.
scp ~/Documents/list.txt protocol://user@myhost.com:/home/user/Documents/list.txt
Keep in mind that protocol://user@myhost.com should be changed accordingly to your use case and may require authentication on the remote server.
It's also possible to download files in a similar way.
scp protocol://user@myhost.com:/home/user/Documents/list.txt ~/Downloads/list.txt
And it can also operate on the remote host only:
scp protocol://user@myhost.com:/home/user/Documents/list.txt protocol://user@myhost.com:/home/user/Download/shopping.txt

Flags