[root@nfs01 backup]# rsync -avz /backup rsync_backup@172.16.1.41::backup
Password:
@ERROR: auth failed on module backup
rsync error: error starting client-server protocol (code 5) at main.c(1648) [sender=3.1.2]
1. 輸入密碼後報錯 首先檢查密碼檔案中的密碼是否正確
[root@backup01 backup]# cat /etc/rsync.password
rsync_backup:123456
查詢密碼之後發現我的密碼是123456 ,剛才輸入了1234567所以報錯.
2. 查詢密碼檔案/etc/rsync.password的許可權是否是600
[root@backup01 backup]# ll /etc/rsync.password
-rw——- 1 root root 20 Jan 13 15:02 /etc/rsync.password
3. 查詢服務端備份目錄歸屬組是否為rsync
[root@backup01 backup]# ll -d /backup
drwxr-xr-x 2 rsync rsync 6 Jan 14 10:35 /backup
三步排查後一般問題就解決了