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 ...
Get A Practical Guide to Red Hat® Linux® 8 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.