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