SCPSecure 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.