NAME

scp安全複製(遠端檔案複製程式)

總覽 SYNOPSIS

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

描述 DESCRIPTION

scp 在網路中的主機間進行檔案複製。 它用 ssh(1) 來傳輸及驗證資料,提供與 ssh(1) 相同的安全保護。 它不象 rcp(1), scp 會根據需要詢問口令。
在任何檔名中都可以包含主機名和使用者名稱,用來指定從/向該主機複製此檔案。 Copies between two remote hosts are permitted.
The options are as follows:
-c cipher
Selects the cipher to use for encrypting the data transfer. This option is directly passed to ssh(1).
-i identity_file
Selects the file from which the identity (private key) for RSA authentication is read. This option is directly passed to ssh(1).
-l limit
Limits the used bandwidth, specified in Kbit/s.
-p
Preserves modification times, access times, and modes from the original file.
-r
遞迴複製整個目錄。
-v
詳細模式。該選項使 scpssh(1) 打印出關於執行情況的除錯資訊。在進行除錯連線、驗證和配置問題時,這會很有用的
-B
用批模式(避免重複詢問口令)。
-q
Disables the progress meter.
-C
允許壓縮。向 ssh(1) 傳遞 -C 標誌以允許壓縮。
-F ssh_config
Specifies an alternative per-user configuration file for ssh. This option is directly passed to ssh(1).
-P port
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).
-S program
Name of program to use for the encrypted connection. The program must understand ssh(1) options.
-o ssh_option
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.
-1
Forces scp to use protocol 1.
-2
Forces scp to use protocol 2.
-4
Forces scp to use IPv4 addresses only.
-6
Forces scp to use IPv6 addresses only.

DIAGNOSTICS

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

作者 AUTHORS

Timo Rinne <[email protected]> 和 Tatu Ylonen <[email protected]>

歷史 HISTORY

scp 基於University of California BSD 的 rcp(1) 原始碼

參見 SEE ALSO

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

[中文版維護人]

meaculpa <[email protected]>

[中文版最新更新]

2000/12/08

《中國linux論壇man手冊頁翻譯計劃》:

http://cmpp.linuxforum.net

本頁面中文版由中文 man 手冊頁計劃提供。
 
中文 man 手冊頁計劃: https://github.com/man-pages-zh/manpages-zh

Recommended readings

Pages related to scp you should read also: