1

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

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

不确定是否是因为 -e ssh。

问候...斯里尼

4

1 回答 1

0

是的,对于守护进程,您不能使用“-e”(“--rsh”)选项。

从手册页:

连接到 RSYNC 守护进程

   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.

检查最后一行。

问候。

于 2017-03-10T09:18:32.740 回答