| |||||||||
Secure Copy or scp is a program for transferring computer files between a local and a remote host or between two remote hosts, using the Secure Shell (SSH) protocol.
Scp is the secure analog of the rcp command. Unlike rcp, data is encrypted during transfer, to avoid potential packet sniffers extracting usable information from the data packets.
scp is a command line tool provided with SSH and OpenSSH. Alternative tools which also support scp are available.
In its basic form the syntax of scp is like the syntax of cp:
After entering the command the remote host will ask user's password and the copy process starts.
A more comprehensive tool for transferring files over SSH is sftp.