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)