加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

Rsync似乎与.bashrc不兼容(导致“你的shell干净吗?”)

发布时间:2020-12-13 18:37:37 所属栏目: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 compat.c(180)
事实证明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来解决此问题.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读