scp —
安全複製(遠端檔案複製程式)
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:
-
-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
- 詳細模式。該選項使
scp 和
ssh(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.
scp exits with 0 on success or >0 if an error
occurred.
Timo Rinne <
[email protected]> 和 Tatu Ylonen <
[email protected]>
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 <
[email protected]>
2000/12/08
http://cmpp.linuxforum.net
本頁面中文版由中文 man
手冊頁計劃提供。
中文 man 手冊頁計劃:
https://github.com/man-pages-zh/manpages-zh