Provided by: manpages-zh_1.6.3.2-1_all
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 詳細模式。該選項使 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.
DIAGNOSTICS
scp exits with 0 on success or >0 if an error occurred.
作者 AUTHORS
Timo Rinne <tri@iki.fi> 和 Tatu Ylonen <ylo@cs.hut.fi>
歷史 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 <meaculpa@21cn.com>
[中文版最新更新]
2000/12/08
《中國linux論壇man手冊頁翻譯計劃》:
http://cmpp.linuxforum.net
跋
本頁面中文版由中文 man 手冊頁計劃提供。 中文 man 手冊頁計劃:https://github.com/man-pages-zh/manpages-zh