我在两个系统上都运行了 rsyncd。当我尝试检查连接时,它给了我以下错误:
来自主机 2:
user@host2#rsync username@host1::share
password: [password]
@ERROR: auth failed on module share
rsync error: error starting client-server protocol (code 5) at main.c(1524) [Receiver=3.0.7]
Run Code Online (Sandbox Code Playgroud)
在主机 1 上:
我有以下配置
vim /etc/rsyncd.conf
max connections = 2
log file = /var/log/rsync.log
timeout = 300
[share]
comment = Public Share
path = /home/subhransu
read only = no
list = yes
uid = backuppc
gid = backuppc
auth users = backuppc
secrets file = /etc/rsyncd.secrets
Run Code Online (Sandbox Code Playgroud)
在主机 1 上
tail /var/log/rsync.log
2013/04/09 03:47:15 [29179] forward name lookup for cust-198-154-126-179.corexchange.com failed: No address associated with hostname
2013/04/09 03:47:15 [29179] connect from UNKNOWN (198.154.126.179)
2013/04/09 03:47:18 [29179] auth failed on module share from unknown (198.154.126.179): unauthorized user
Run Code Online (Sandbox Code Playgroud)
注意:rsyncd.secrets有正确的user:passwd,没有防火墙问题。
我相信服务器配置文件中的uid和gid参数用于权限分离。
auth users配置中的参数明确拒绝除“ backuppc”之外的所有其他用户名。
因此,您需要在“Host1”上的 rsyncd.secrets 中以及“Host2”上的命令行中使用“backuppc”。
尝试从 中删除auth users语句/etc/rsyncd.conf,或仔细检查您确实是backuppcHost2 上的用户(不是“用户”或“用户名”,如示例“来自主机 2:”)。
进行故障排除时,还可以尝试添加strict modes = false到 rsyncd 配置文件中。
| 归档时间: |
|
| 查看次数: |
57673 次 |
| 最近记录: |