scp
Securely copies one or more files to or from a remote computer
scp [[user@]from-host:]source-file [[user@]to-host:][destination-file]
The scp (secure copy) utility copies an ordinary or directory file from one computer to another on a network. This utility uses ssh to transfer files and the same authentication mechanism as ssh; therefore, it provides the same security. The scp utility asks you for a password when it is needed for security.
Arguments
The from-host is the name of the machine you are copying files from, and to-host is the machine you are copying to. When you do not specify a host, scp assumes the local machine. The user on either host defaults to the user on the local machine who is giving the command; specify a different ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access