由于 ssh 跑在其他的端口,不管我怎么修改,rsync
始终跑 22 端口,有什么解决办法吗?
rsync -rvz --progress --remove-sent-files ./localpath root@remotehost:2345/remotepath
前提:ssh 端口无法修改
由于 ssh 跑在其他的端口,不管我怎么修改,rsync
始终跑 22 端口,有什么解决办法吗?
rsync -rvz --progress --remove-sent-files ./localpath root@remotehost:2345/remotepath
前提:ssh 端口无法修改
rsync -rvz -e 'ssh -p 2345' --progress --remove-sent-files ./localpath root@remotehost:/remotepath
rsync -avz --delete tmp/ rsync://${USER}@${HOST}:${PORT}/${MODULE}/path
${MODULE}是远程服务器里/etc/rsyncd.conf中括号里的一个
rsync -rvz
-e 'ssh -p Port'
--progress --remove-sent-files ./localpath root@remotehost:2345/remotepathhttps://www.centos.bz/2013/09/ssh-port-rsync/