Search:  
Gentoo Wiki

Scp

Secure Copy


scp is a tool used to securely copy files, by means of the SSH protocol. The sftp tool is similar. scp works very much like the Unix "cp" command:

scp <source> <destination>

If the source or destination of scp is a remote host, the syntax

username@host:/remote/directory/to/copy/to

is used. For example, to upload a file "foo.txt" on a local computer to a remote host "host.org" using the username "user" to the /var directory, the syntax is as follows:

$ scp foo.txt user@host.org:/var/

A password prompt follows

Password: <type the user's password here>

See Also

Retrieved from "http://www.gentoo-wiki.info/Scp"

Last modified: Wed, 15 Oct 2008 00:24:00 +0000 Hits: 7,520