Secure Copy or scp copies files between hosts on a network.
It uses ssh for data transfer, and uses the same authentication and provides the same security as ssh.
Syntax to copy a file from one linux host to another host that has ssh enabled:
scp -v [path to local file] [remote server username]@[hostname/IP]:/[Destination Folder Path] ``` For e.g.: ``` scp -v /tmp/test.txt email@example.com:/root/ ```