rsync报错@ERROR: auth failed on module XX

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了rsync报错@ERROR: auth failed on module XX相关的知识,希望对你有一定的参考价值。

在手动输入/etc/rsync.conf配置文件,rsync --daemon启动后,同步数据发现如下问题:

[[email protected] ~]# rsync -avz /tmp/ [email protected]::backup/ --password-file=/etc/rsync.password

@ERROR: auth failed on module backup

rsync error: error starting client-server protocol (code 5) at main.c(1503) [sender=3.0.6]

由于出现auth错误,重新查看/etc/rsync.conf文件发现错误的把密码配置文件写为/etc/rsync.passwd

而非/etc/rsync.password,且实际密码都在/etc/rsync.password此文件中,停止rsync服务kill ·cat /var/run/rsync.pid·,修改后再重新启动,一切正常~

另外查找网上原因,客户端可服务端密码不匹配,或者/etc/rsync.password文件权限不是600都可引起此配置错误~

以上是关于rsync报错@ERROR: auth failed on module XX的主要内容,如果未能解决你的问题,请参考以下文章

@ERROR: auth failed on module wwwroot rsync error: error starting client-server protocol (code 5) at

@ERROR: auth failed on module wwwroot rsync error: error starting client-server protocol (code 5) at

RSYNC @ERROR: AUTH FAILED ON MODULE XXX 解决思路及附录RSYNC常见问题及解决办法

@ERROR: auth failed on module wwwroot rsync error: error starting client-server protocol (code 5) at

rsync auth failed on module xxx

srync:@ERROR: auth failed on module tee 的解决办法分析