Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio rsync在Visual Studio 2019中不工作_Visual Studio_Cmake - Fatal编程技术网

Visual studio rsync在Visual Studio 2019中不工作

Visual studio rsync在Visual Studio 2019中不工作,visual-studio,cmake,Visual Studio,Cmake,我已经根据VisualStudio2019中提供的模板创建了一个简单的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. dup(

我已经根据VisualStudio2019中提供的模板创建了一个简单的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.
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]
日志显示错误详细信息,如下所示。

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和不使用ssh的情况下对其进行了测试

当我尝试测试Visual Studio在“C:\Apps\VS2019Pro\Common7\IDE\VC\Linux\bin\rsync\rsync.exe”下提供的rsync以将文件同步/复制到远程Linux服务器时,失败了,错误如下

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.
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使用Rsync协议,这是一种客户机-服务器协议。 您正在使用的客户机需要与服务器对话,这是远程服务器上的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.

您确实需要在远程服务器上安装rsync。

远程计算机上是否实际安装了rsync,连接到该计算机的用户是否可以访问它?@mrblewog我试图通过使用VS提供的rsync从windows计算机连接来测试它,但得到了我在更新中发布的错误。@mrblewog在VS内部使用rsync二进制文件,哪个是本地存在的,还是使用远程Linux来同步目录?VS内部是否使用rsync二进制文件?这是一个好问题。你能用VS以外的东西连接到远程机器吗?例如SSH会话?是的——你在下面这么说。谢谢,rsync安装在远程服务器上,我测试了ssh和ssh,它都可以工作。我已经更新了我的帖子,介绍了我使用rsync进行测试的更多细节。请你看一看。