May 13, 2012

1.4.11 SCP

SCP

Secure Copy or SCP is a network protocol, based on the Berkeley Software Distribution’s (BSD) Remote Copy (RCP) protocol. SCP supports secure transfer of computer files between hosts on a network (local to remote host or remote to remote host).

SCP uses Secure Shell (SSH) for data transfer and utilizes the same mechanisms for authentication, thereby ensuring the authenticity and confidentiality of the data in transit.

A client can send (upload) files to a server, optionally including their basic attributes (permissions, timestamps). Clients can also request files or directories from a server (download).

SCP runs over TCP port 22 by default.

The scp (UNIX/Mac OS X) and winscp (Windows) programs are implementations of the SCP protocol.

SCP relies on Secure Shell (SSH). SCP is an application and a protocol that provide a secure replacement for the Berkeley r-tools, e.g rcp. Both programs (rcp and scp) are very similar, except that with scp, information (including the password used to log in) is encrypted.

References:
http://kb.iu.edu/data/akqg.html
http://en.wikipedia.org/wiki/Secure_copy
https://blogs.oracle.com/janp/entry/how_the_scp_protocol_works