SCP(1) General Commands Manual SCP(1)


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

scp 在网络中的主机间进行文件复制。 它用 ssh(1) 来传输及验证数据,提供与 ssh(1) 相同的安全保护。 它不象 rcp(1), scp 会根据需要询问口令。

在任何文件名中都可以包含主机名和用户名,用来指定从/向该主机复制此文件。 Copies between two remote hosts are permitted.

The options are as follows:

Selects the cipher to use for encrypting the data transfer. This option is directly passed to ssh(1).
Selects the file from which the identity (private key) for RSA authentication is read. This option is directly passed to ssh(1).
Limits the used bandwidth, specified in Kbit/s.
Preserves modification times, access times, and modes from the original file.
详细模式。该选项使 scpssh(1) 打印出关于运行情况的调试信息。在进行调试连接、验证和配置问题时,这会很有用的
Disables the progress meter.
允许压缩。向 ssh(1) 传递 -C 标志以允许压缩。
Specifies an alternative per-user configuration file for ssh. This option is directly passed to ssh(1).
Specifies the port to connect to on the remote host. Note that this option is written with a capital ‘P’, because -p is already reserved for preserving the times and modes of the file in rcp(1).
Name of program to use for the encrypted connection. The program must understand ssh(1) options.
Can be used to pass options to ssh in the format used in ssh_config(5). This is useful for specifying options for which there is no separate scp command-line flag.
Forces scp to use protocol 1.
Forces scp to use protocol 2.
Forces scp to use IPv4 addresses only.
Forces scp to use IPv6 addresses only.

scp exits with 0 on success or >0 if an error occurred.

Timo Rinne <> 和 Tatu Ylonen <>

scp 基于University of California BSD 的 rcp(1) 源代码

rcp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), ssh_config(5), sshd(8)

meaculpa <>


本页面中文版由中文 man 手册页计划提供。
中文 man 手册页计划:
September 25, 1999 Linux 5.13.13-arch1-1