【发布时间】:2020-06-03 10:49:07
【问题描述】:
我从 Visual Studio 2019 中提供的模板创建了一个简单的 CMake 项目。它连接到远程 Linux 服务器并在使用“rsync”复制文件时出错,并出现以下错误。
Could not start the 'rsync' command on the remote host, please install it using your system package manager. Please see https://aka.ms/AA23jat for troubleshooting.
日志显示错误详情如下。
23:03:25.2045083 [Error, Thread 88] liblinux.IO.Rsync: liblinux.IO.RsyncException: Could not create daemon configuration file on remote device ---> liblinux.IO.RsyncException: echo config error: and error output: Unmatched ".
请注意: rsync 安装在远程 Linux 服务器上,并在使用和不使用 ssh 的情况下对其进行了测试。
当我尝试测试 Visual Studio 在“C:\Apps\VS2019Pro\Common7\IDE\VC\Linux\bin\rsync\rsync.exe”下提供的 rsync 以将文件同步/复制到远程 linux 服务器时它失败并出现以下错误。
dup() in/out/err failed
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.3]
我们将不胜感激。
【问题讨论】:
-
rsync 是否实际安装在远程计算机上,连接到该计算机的用户是否可以访问它?
-
@mrblewog 我尝试通过使用 VS 提供的 rsync 从 Windows 机器连接来测试它,并得到了我在更新中发布的错误。
-
@mrblewog VS 内部是使用本地存在的 rsync 二进制文件还是使用远程 Linux 同步目录?
-
VS 内部是否使用 rsync 二进制文件——这是个好问题。你能用VS以外的东西连接到远程机器吗?例如 SSH 会话?是的——你在下面这么说。
标签: visual-studio cmake