Scp

From Gentoo Linux Wiki

Jump to: navigation, search

Secure Copy, 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>

[edit] See Also

Retrieved from "http://gentoo-wiki.com/Scp"
Personal tools