Rsync似乎与.bashrc不兼容(导致“你的shell干净吗?”)
发布时间:2020-05-23 17:56:43 所属栏目:Linux 来源:互联网
导读:事实证明rsync不能用于具有.bashrc文件的远程服务器? 在本地客户端我运行rsync时得到: protocol version mismatch -- is your shell clean?(see the rsync man page for an explanation)rsync error: protocol incompatibility (code 2) at compa
|
事实证明rsync不能用于具有.bashrc文件的远程服务器? 在本地客户端我运行rsync时得到: protocol version mismatch -- is your shell clean? (see the rsync man page for an explanation) rsync error: protocol incompatibility (code 2) at compat.c(180) [sender=3.0.7] 正如建议here删除服务器上的.bashrc解决了问题.如何解决它而不删除.bashrc文件(暂时)? 解决方法如果远程服务器上的.bashrc向终端输出任何内容,则可能会遇到问题. Rsync可能没有预期到,因此可能会出现问题.您可以通过删除输出文本的.bashrc中的任何命令,或通过将任何输出传递给/ dev / null来解决此问题. (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
