SCP, the Secure Copy Protocol, copies files between hosts over an SSH connection. It was never standardized by an RFC; its behavior is defined by the scp program that shipped with SSH, and current OpenSSH runs scp over the SFTP protocol, keeping the original protocol behind the -O flag.
SCP
SCP, the Secure Copy Protocol, moves files between machines over an SSH connection. It borrows its command-line shape from the old Unix rcp and adds SSH’s authentication and encryption. It is a de facto protocol: there is no RFC, and its behavior is whatever the scp program on each end agrees to.
- Rides on SSH - The same keys, host verification and encrypted channel as an interactive SSH session.
- Whole-file copies - No directory listing, resume or remote file management, which is the gap SFTP fills.
- Being retired in place - Current OpenSSH runs
scpover the SFTP protocol and keeps the legacy protocol behind-O.
SCP is a good example of a protocol that businesses depend on without a specification behind it. Deploy scripts, backups and partner file drops still use scp:// URLs, and tools like curl support them because the traffic is out there, whether or not anyone wrote the protocol down.