$ cat /root/rsyncd-test.conf
uid = root
gid = root
use chroot = yes
max connections = 100
pid file = /var/run/rsyncd-test.pid
log file = /var/log/rsyncd-test.log
[test]
path = /data
comment = test dir
read only = no
auth users = test
secrets file = /etc/rsyncd-user
$ cat /etc/rsyncd-user
test:test123
rsync --daemon
--address=0.0.0.0
--port=874
--config=/root/rsyncd-test.conf
$ rsync --port=874 server-ip::
test test dir
rsync -avh --port=874 ./tmp1 test@it.vip::test/
export RSYNC_PASSWORD=test123
test@it.vip::test/ rsync -avh --port=874 ./tmp1
原文始发于微信公众号(生有可恋):rsync daemon 模式
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论