通过rsync向指定的ssh端口同步数据 rsync -avzP -e 'ssh -p 2222' /home/svn/repos2/ 这样即便远程ssh不是默认的22端口,也可以通过rsync同步文件 转载于:https://blog.51cto.com/fccwcom/1180670