王健林 发表于 2019-1-20 17:07:44

rsync 同步不了 求大神协助[已经解决]

本帖最后由 王健林 于 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


王健林 发表于 2019-1-20 17:08:54

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

rsync -avz --delete --password-file=/etc/rsync.pass admin@81.89.100.***::wwwxxx /data/back/test

@ERROR: auth failed on module wwwxxx
rsync error: error starting client-server protocol (code 5) at main.c(1666)

王健林 发表于 2019-1-20 17:15:04


002.gif
已经解决


两个文件不能一样 。。
/etc/rsync.pass
主服务器的密码文件记录:用户名:密码
/etc/rsync.pass
客户端只记录密码:密码
页: [1]
查看完整版本: rsync 同步不了 求大神协助[已经解决]