From Gentoo Wiki
Jump to:navigation Jump to:search

Not to be confused with SCAP.


SCP (Secure Copy Program) is an interactive file transfer program, similar to the copy command, that copies files over an encrypted SSH transport. It uses many features of SSH, such as public key authentication and compression.[1]


On the majority of Gentoo mediums scp should be installed as part of the default system profile. To verify installation run the scp command. A usage statement should appear:

user $scp
usage: scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
           [-l limit] [-o ssh_option] [-P port] [-S program]
           [[user@]host1:]file1 ... [[user@]host2:]file2

If no usage statement is displayed then scp is not installed or has been corrupted. Follow the installation instructions beginning at Emerge section in the SSH article to install SCP.


For configuration see the configuration section in the SSH article.

See also

  • SFTP — an interactive file transfer program, similar to ftp, which performs all operations over an encrypted SSH transport.
  • SSHFS — a secure shell client used to mount remote filesystems to local machines.
  • SSH — an encrypted terminal program that replaces the classic telnet tool on Unix-like operating systems.
  • CurlFtpFS — allows for mounting an FTP folder as a regular directory to the local directory tree.

External resources

  • The SCP man page locally (man scp) or online at