如何用scp指定端口号用大写字母P并且要放在复制文件和复制文件目的地的前面
#scp -P 9562 /home/jim/**.sql
-P 大写-P 指定非默认端口
/home/jim/**.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
参考:
阅读(460) | 评论(0) | 转发(0) |