|
|
配置如下:
[root@rh9 opt]# cat /etc/rsyncd.conf
uid = nobody
gid = nobody
use chroot = no
max connections = 4
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
log file = /var/log/rsyncd.log
[apache]
path = /opt/apache
ignore errors
read only = true
list = false
#hosts allow = 202.99.11.121
#hosts deny = 0.0.0.0/32
auth users = backup
secrets file = /etc/user.pas
[root@rh9 opt]# cat /etc/user.pas
backup:backup
chmod 400 /etc/user.pas
chmod 400 /etc/rsyncd.conf
客户端执行错误:
[root@mail root]# rsync -vzrtopg --progress backup@192.168.0.223::apache /backup/apache/ --password-file=/etc/backup.pas
rsync: failed to connect to 192.168.0.223: Connection refused
rsync error: error in socket IO (code 10) at clientserver.c(97)
请问各位兄弟,这是什么问题造成的?
不过可以执行匿名备份文件,但是用户认证模式就会出现上面的问题。 |
|