Home Rsync使用与sshport不同的几种方式
Post
Cancel

Rsync使用与sshport不同的几种方式

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
This post is licensed under CC BY 4.0 by the author.