SCP (secure copy) is a command-line utility that allows you to securely copy files and directories between two locations. For example, it can be used while connected to a device via ssh.
scp [OPTION] [user@]SRC_HOST:]file1 [user@]DEST_HOST:]file2
OPTION
- scp options such as cipher, ssh configuration, ssh port, limit, recursive copy …etc.[user@]SRC_HOST:]file1
- Source file[user@]DEST_HOST:]file2
- Destination file
scp user1@host1.com:/files/file.txt user2@host2.com:/files