rsync:没有看到服务器问候语

时间:2015-12-08 00:03:29

标签: cwrsync

我们正在尝试使用cwrsync在Windows中本地构建CRAN reposiotry。我们使用rsync命令下载所有软件包等。由于我们运行的机器在代理后面,我们也使用RSYNC_PROXY变量。当我们执行rsync命令时,我们得到了" rsync:没有看到服务器问候"。能帮助我们吗。

rsync -av --chmod u + rwx -e" ssh -i d:\ r-download" " / cygdrive / d / R-下载" rsync -rtlzv --delete cran.r-project.org::CRAN" / cygdrive / d / download"

不确定是否因为-e ssh。

...问候作者Srini

1 个答案:

答案 0 :(得分:0)

是, 守护进程你不能使用' -e' (' - rsh')选项。

从手册页:

  

连接到RSYNC DAEMON

   It is also possible to use rsync without a remote shell as the
   transport.  In this case you will directly connect to a remote rsync
   daemon, typically using TCP port 873.  (This obviously requires the
   daemon to be running on the remote system, so refer to the STARTING AN
   RSYNC DAEMON TO ACCEPT CONNECTIONS section below for information on
   that.)

   Using rsync in this way is the same as using it with a remote shell
   except that:

   o      you either use a double colon :: instead of a single colon to
          separate the hostname from the path, or you use an rsync:// URL.

   o      the first word of the "path" is actually a module name.

   o      the remote daemon may print a message of the day when you
          connect.

   o      if you specify no path name on the remote daemon then the list
          of accessible paths on the daemon will be shown.

   o      if you specify no local destination then a listing of the
          specified files on the remote daemon is provided.

   o      you must not specify the --rsh (-e) option.

检查最后一行。

问候。