Gentoo Wiki


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


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

$ scp foo.txt

A password prompt follows

Password: <type the user's password here>

See Also

Retrieved from ""

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