linux拷贝命令之高级拷贝scp命令详解

2019-10-14 15:12:31刘景俊

-F ssh_config
 Specifies an alternative per-user configuration file for ssh.This option is directly passed to ssh(1).
为ssh指定一个交互的用户配置文件,这个选项被直接传递给ssh(1)。

-l limit
 Limits the used bandwidth, specified in Kbit/s.
 限制使用的带宽,以Kb为单位。


-P port
 Specifies the port to connect to on the remote host.
 在远程主机上指定链接端口

-q Quiet mode
 静默模式:

-r Recursively copy entire directories
递归拷贝整个目录

-S program
 Name of program to use for the encrypted connection.The program must understand ssh(1) options.
用来加密链接的程序。这个程序需要能够识别ssh(1)的选项。

EXIT STATUS
执行后状态
The scp utility exits 0 on success, and >0 if an error occurs.
scp 工具命令当成功执行后,返回代码为0, 任何错误出现返回代码都大于0