scp 远程复制文件
时间:2010-05-25 来源:iStyle_Ubuntu
如何用scp指定端口号用大写字母P并且要放在复制文件和复制文件目的地的前面
#scp -P 9562 /home/jim/**.sql jim@221.*.*.*:/home/jon/**.sql
-P 大写-P 指定非默认端口
/home/jim/**.sql 指定本地文件路径
jim@221.*.*.*:/home/jon/**.sql 指定远程登陆机器 用户名@远程机器IP:/保存路径
语法:
SYNOPSIS
scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
[-l limit] [-o ssh_option] [-P port] [-S program]
[[user@]host1:]file1 [...] [[user@]host2:]file2 参考:http://pengyou.rijiben.org/node/1816
scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
[-l limit] [-o ssh_option] [-P port] [-S program]
[[user@]host1:]file1 [...] [[user@]host2:]file2 参考:http://pengyou.rijiben.org/node/1816
相关阅读 更多 +