Skip to content

使用rsync -e ssh的方式进行传输,不能设置其它端口 #70

Description

@GoogleCodeExporter
使用版本sersync2.5.4
ssh默认使用22端口,可以同步成功,如果使用其他端口,则同
步不成功。但服务器运行在公网上,一般都会修改端口,可��
�在xml文件中,只能设置是否启用ssh模式。如果配置文件中可�
��设置ssh端口号就好了。
rsync -artuz -R  -e 'ssh -p 3000' "./test1" user1@192.168.10.52:/data/web/
ssh非22端口要这样才可以同步,建议sersync对开启ssh时增加“-p
 ”参数。

Original issue reported on code.google.com by gongyj0...@gmail.com on 5 Aug 2014 at 6:45

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions