Man page - scp(1)

Packages contains this manual

Available languages:

en fr pl tr uk ro zh_TW zh_CN de

Manual


SCP (1) General Commands Manual SCP (1)

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 Debian September 25, 1999 SCP (1)