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来解决此问题. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- linux – 为什么SSHFS不让我查看挂载的目录?
- linux – 解析samba testparm消息:rlimit_max:rlimit_max
- linux – 在不重启服务器的情况下卸载根文件系统
- linux – 为什么我的Rust可执行文件映射到这样的高地址(靠近
- Linux安装与联网
- linux – 如何使用ftp将一个文件夹复制到服务器
- dump net core windbg 内存分析
- linux – 如果脚本需要输入或输入密码,则失败
- samba – 用于访问iOS应用程序的文件服务器的WebDAV
- rpm -qpi tigervnc-server-1.8.0-1.el7.x86_64.rpm