rsync 出现 protocol incompatibility (code 2) 错误通常是由于客户端和服务器端的 shell 环境配置不兼容导致的。 具体来说,rsync 在传输数据之前会先通过 SSH 连接到远程服务器,如果远程服务器的 shell 启动脚本(如 .bashrc 或.bash_profile)中有输出语句,这些输出可能会干扰 rsync 的正常通信,从而导致协议不兼容...
2 人赞同了该文章 vscode和远程服务器同步code时遇到如下问题: 发现是由于服务器的.bashrc中每次ssh登陆时会echo一些语句。rsync每次同步时都要进行ssh登陆并将解析返回的数据包。如果.bashrc有其他语句输出会造成解析混乱。 注掉.bashrc中echo的语句就可以正常rsync. 参考 rsync error: protocol incompatibility / misma...
代码语言:javascript 代码运行次数:0 AI代码解释 protocol version mismatch--is your shell clean?(see the rsync man pageforan explanation)rsync error:protocolincompatibility(code2)at compat.c(171)[sender=3.0.6] 即使打开调试选项 -vv,也没能得到更多的有用信息,不过看提示,应该是跟 shell 环境有关。 ...
eric@128.11.51.91's password: protocol version mismatch -- is your shell clean? (see the rsync man page for an explanation) rsync error: protocol incompatibility (code 2) at compat.c(173) [sender=3.0.7] --- 根据错误找答案,怎么找都找不到问题出在那里。 网上资料少,说的一些东西也是不可执...
rsync error: protocol incompatibility (code 2) at compat.c(600) [sender=3.2.3] Rsync package versions are different in source & target server, however protocol versions are same. Resolution To diagnose the problem, run the below command. ...
1Syntax or usage error 2Protocol incompatibility 3Errors selecting input/output files, dirs 4Requested action not supported: an attempt was made to manipulate64-bit files on a platform that cannot support them; or an option was specified that is supported by the client and not by the server....
protocol version mismatch -- is your shell clean? (see the rsync man page for an explanation) rsync error: protocol incompatibility (code 2) at compat.c(178) [sender=3.1.2] 分析与解决方案 # 1、原因是 rsync 在传输数据之前,会先与远端进行一次 ssh 登录认证,而当 .bashrc文件有输出的时候,rsy...
protocol version mismatch – is your shell clean? (see the rsync man page for an explanation) rsync error: protocol incompatibility (code 2) at compat.c(178) [Receiver=3.1.2] If I try: ssh remotehost /bin/true > out.dat I get prompted for a password. I’m haven’t specified a rem...
rsync error: error in rsync protocol data stream (code 12) at io.c(614) [sender=2.6.8] 出现上面的错误有可能是以下几个原因: (1)在rsync服务器端的配置文件 rsyncd.conf 中添加了 refuse options=delete。 (2)修改配置文件后,没有重启rsync服务器程序。
The rsync remote-update protocol allows rsync to transfer just the dif- ferences between two sets of files across the network connection, using an efficient checksum-search algorithm described in the technical report that accompanies this package. ...