Back

rsync 使用与ssh port不同的几种方式

发布时间: 2014-11-26 02:41:00

refer to  http://stackoverflow.com/questions/4549945/is-it-possible-to-specify-a-different-ssh-port-when-using-rsync/27140429#27140429

rsync -rvz -e 'ssh -p 2222' --progress --remove-sent-files ./dir user@host:/path
rsync -avz --rsh='ssh -p3382' root@remote_server_name:/opt/backups# or in your ~/.ssh/config  file
Host host
    Port 2222

Back