O'Reilly logo

A Practical Guide to Red Hat® Linux® 8 by Mark G. Sobell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required