rsync比scp更快——需要证书怎么办?!

默认端口连接:

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':

你可能感兴趣的:(rsync比scp更快——需要证书怎么办?!)