默认端口连接:
rsync -v key.json root@123.xx.xx.xx:/home/hadoop/key.json
-------------------------------------------------------------------------------------
指定端口和证书连接:
rsync -Pav -e "ssh -i ./HadoopKey -p 12222" ./synctest root@101.xx.xx.xx:/home/hadoop/synctest
Enter passphrase for key './HadoopKey':