我有一个服务器配置为运行 rsync 作为恶魔 /etc/rsyncd.conf 文件:
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
[documents]
path = /home/user/work
comment = User's Documents folder
uid = user
gid = user
read only = no
auth users = user
secrets file = /etc/rsyncd.secrets
Run Code Online (Sandbox Code Playgroud)
/etc/rsyncd.secrets 文件:
user:more
Run Code Online (Sandbox Code Playgroud)
在客户端我运行:
rsync my_file user@ip_address::documents
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
@ERROR: auth failed on module documents
rsync error: error starting client-server protocol (code 5) at main.c(1524) [sender=3.0.7]
Run Code Online (Sandbox Code Playgroud)
在服务器上,我有一个名为 user 的 root 用户,具有不同的密码。在客户端,我尝试了两个密码,结果相同。
我做错了什么?
| 归档时间: |
|
| 查看次数: |
59018 次 |
| 最近记录: |