.\" -*- nroff -*- .\" .\" scp.1 .\" .\" Author: Tatu Ylonen .\" .\" Copyright (c) 1995 Tatu Ylonen , Espoo, Finland .\" All rights reserved .\" .\" Created: Sun May 7 00:14:37 1995 ylo .\" .\" $OpenBSD: scp.1,v 1.27 2003/03/28 10:11:43 jmc Exp $ .\" .Dd September 25, 1999 .Dt SCP 1 .Os .Sh NAME .Nm scp .Nd 安全複製(遠程文件複製程序) .Sh 總覽 SYNOPSIS .Nm scp .Bk -words .Op Fl pqrvBC1246 .Op Fl F Ar ssh_config .Op Fl S Ar program .Op Fl P Ar port .Op Fl c Ar cipher .Op Fl i Ar identity_file .Op Fl l Ar limit .Op Fl o Ar ssh_option .Sm off .Oo .Op Ar user@ .Ar host1 No : .Oc Ns Ar file1 .Sm on .Op Ar ... .Sm off .Oo .Op Ar user@ .Ar host2 No : .Oc Ar file2 .Sm on .Ek .Sh 描述 DESCRIPTION .Nm 在網絡中的主機間進行文件複製。 它用 .Xr ssh 1 來傳輸及驗證數據,提供與 .Xr ssh 1 相同的安全保護。 它不象 .Xr rcp 1 , .Nm 會根據需要詢問口令。 .Pp 在任何文件名中都可以包含主機名和用戶名,用來指定從/向該主機複製此文件。 Copies between two remote hosts are permitted. .Pp The options are as follows: .Bl -tag -width Ds .It Fl c Ar cipher Selects the cipher to use for encrypting the data transfer. This option is directly passed to .Xr ssh 1 . .It Fl i Ar identity_file Selects the file from which the identity (private key) for RSA authentication is read. This option is directly passed to .Xr ssh 1 . .It Fl l Ar limit Limits the used bandwidth, specified in Kbit/s. .It Fl p Preserves modification times, access times, and modes from the original file. .It Fl r 遞歸複製整個目錄。 .It Fl v 詳細模式。該選項使 .Nm 和 .Xr ssh 1 打印出關於運行情況的調試信息。在進行調試連接、驗證和配置問題時,這會很有用的 .It Fl B 用批模式(避免重複詢問口令)。 .It Fl q Disables the progress meter. .It Fl C 允許壓縮。向 .Xr ssh 1 傳遞 .Fl C 標誌以允許壓縮。 .It Fl F Ar ssh_config Specifies an alternative per-user configuration file for .Nm ssh . This option is directly passed to .Xr ssh 1 . .It Fl P Ar port Specifies the port to connect to on the remote host. Note that this option is written with a capital .Sq P , because .Fl p is already reserved for preserving the times and modes of the file in .Xr rcp 1 . .It Fl S Ar program Name of .Ar program to use for the encrypted connection. The program must understand .Xr ssh 1 options. .It Fl o Ar ssh_option Can be used to pass options to .Nm ssh in the format used in .Xr ssh_config 5 . This is useful for specifying options for which there is no separate .Nm scp command-line flag. .It Fl 1 Forces .Nm to use protocol 1. .It Fl 2 Forces .Nm to use protocol 2. .It Fl 4 Forces .Nm to use IPv4 addresses only. .It Fl 6 Forces .Nm to use IPv6 addresses only. .El .Sh DIAGNOSTICS .Nm exits with 0 on success or >0 if an error occurred. .Sh 作者 AUTHORS Timo Rinne 和 Tatu Ylonen .Sh 歷史 HISTORY .Nm 基於University of California BSD 的 .Xr rcp 1 源代碼 .Sh 參見 SEE ALSO .Xr rcp 1 , .Xr sftp 1 , .Xr ssh 1 , .Xr ssh-add 1 , .Xr ssh-agent 1 , .Xr ssh-keygen 1 , .Xr ssh_config 5 , .Xr sshd 8 .Sh "[中文版維護人]" meaculpa .Sh "[中文版最新更新]" 2000/12/08 .Sh "《中國linux論壇man手冊頁翻譯計劃》:" http://cmpp.linuxforum.net .Sh "跋" .br 本頁面中文版由中文 man 手冊頁計劃提供。 .br 中文 man 手冊頁計劃:\fBhttps://github.com/man-pages-zh/manpages-zh\fR