• 本帖最后由 王健林 于 2019-1-20 17:15 编辑 *

两个VPS都安装老rsync ,同步 老是出现:
@ERROR: auth failed on module wwwxxx

服务器上日志:
auth failed on module wwwxxx from 62-210-217-xxx.rev.poneytelecom.eu (62.210.217.xxx) for admin: password mismatch

但是两个密码都是一样的,两个文件的 md5值也是同一个。
a6b7e1273ae0e084096f797b51550537 /etc/rsync.pass

主服务器的配置文件: cat /etc/rsyncd.conf

log file = /var/log/rsyncd.log
pidfile = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
secrets file = /etc/rsync.pass
motd file = /etc/rsyncd.Motd
#创建一个模块名称,后面需要一致

#备份服务器目录地址
path = /home/wwwroot/default/phpmyadmin
#对应上面模块名称
comment = wwwxxx
uid = root
gid = root
port = 873
use chroot = no
read only = False
list = no
max connections = 200
timeout = 600
#创建一个同步用户名,随便取,反正后面出现的时候要一致
auth users = admin
#主服务器IP地址
hosts allow = 62.210.217.***

用户密码:/etc/rsync.pass
admin:123456