歡迎您光臨本站 註冊首頁

rsync始終認證不成功,請教!

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

rsync始終認證不成功,請教!

配置文件如下:
/etc/rsyncd.conf

uid = nobody
gid = nobody
use chroot = no         # 不使用chroot
max connections = 4         # 最大連接數為4
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
log file = /var/log/rsyncd.log    # 日誌記錄文件

            # 這裡是認證的模塊名,在client端需要指定
path = /opt/bt   # 需要做鏡像的目錄
comment = BACKUP CLIENT IS SOLARIS 8 E250
ignore errors            # 可以忽略一些無關的IO錯誤
read only = yes            # 只讀
list = no            # 不允許列文件
auth users = inburst        # 認證的用戶名,如果沒有這行,則表明是匿名
secrets file = /etc/inburst.pas    # 認證文件名

/etc/inburst.pas文件如下:
inburst:hack


rsync --daemon 啟動成功,netstat確認873有監聽。


客戶端:
rsync -vzrtopg --progress --delete inburst@192.168.168.52::inburst /tmp/

輸入密碼后發現:
@ERROR: auth failed on module inburst
rsync: connection unexpectedly closed (91 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(165)


將auth users = inburst   註釋掉后發現:
@ERROR: chroot failed
rsync: connection unexpectedly closed (34 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(165)



伺服器端日誌如下:
2006/06/03 12:32:42 rsyncd version 2.6.3 starting, listening on port 873
2006/06/03 12:32:45 params.c:Parameter() - Ignoring badly formed line in configuration file: ignore errors
2006/06/03 12:32:45 name lookup failed for 60.232.126.152: Name or service not known
2006/06/03 12:32:52 auth failed on module inburst from UNKNOWN (60.232.126.152)
2006/06/03 12:34:47 params.c:Parameter() - Ignoring badly formed line in configuration file: ignore errors
2006/06/03 12:34:47 name lookup failed for 60.232.126.152: Name or service not known
2006/06/03 12:34:50 auth failed on module inburst from UNKNOWN (60.232.126.152)


其中60.232.126.152是我的客戶端主機



請問,到底怎麼回事?
《解決方案》

自己頂
《解決方案》

檢查/etc/inburst.pas文件是不是有多餘的空格或空行存在
《解決方案》

許可權問題
《解決方案》

將rsyncd.conf文件中的註釋全部刪掉再試。
《解決方案》

感謝大家,可以了。
配置文檔中有多餘空格也不行。
結帖了!
《解決方案》

name lookup failed for 60.232.126.152: Name or service not known

需要反向解析
《解決方案》

auth failed on module inburst from UNKNOWN
呵呵 最主要的原因是這個錯誤,你模塊名搞錯了

[火星人 ] rsync始終認證不成功,請教!已經有471次圍觀

http://coctec.com/docs/service/show-post-17350.html