Rsync安全配置
来源:互联网 发布:mac 字典 编辑:程序博客网 时间:2024/05/07 09:52
创建rsync的密码文件,格式 username:password
$ vi /etc/rsyncd.secrets
创建rsync共享配置文件
$ vi /etc/rsyncd.conf
添加如下内容:
pid file = /var/run/rsyncd.pid
port = 873
uid = root
gid = root
use chroot = yes
read only = no
max connections = 1000
secrets file=/etc/rsyncd.secrets
#This will give you a separate log file
log file = /var/log/rsync.log
log format = %t %a %m %f %b
syslog facility = local3
timeout = 300
#For ACL
hosts allow = 10.0.0.0/255.0.0.0
hosts deny = *
[transcode]
path=/home/test
read only = no
uid=root
gid=root
auth users = root
启动rsync server:rsync --daemon /etc/rsyncd.conf
用法:rsync -rvaq --password-file=/data/secret.txt --delete --exclude "*.pyc" --exclude ".git" username@ip:transcode/test.txt .
注意事项:本机上的/data/secret.txt文件里只需要保存密码即可,用户名已经在命令中有了,并且权限应为600。
0 0
- rsync安全配置
- Rsync安全配置
- rsync安全配置
- Rsync安全配置&利用
- rsync 配置
- rsync 配置
- rsync配置
- rsync配置
- rsync 配置
- 配置rsync
- rsync 配置
- rsync 配置
- rsync配置
- rsync配置
- rsync配置
- rsync配置
- rsync配置
- rsync配置
- cell高度自适应
- PowerShell学习笔记(1)-基础
- sqlite插入记录值为纯数字的字符串的问题以及sqlite语句中字符串的拼接
- ajax异步加载问题
- activiti在eclipse中的安装配置
- Rsync安全配置
- Android 6.0的变化
- 在手机的sd卡上创建一个以当天日期为命名的文件夹
- 如何在数据采集程序中判断JPG文件下载完整了?
- 101个MySQL开源数据库调试和优化技巧
- Android 工程重命名错误
- 6_2:一种getpwnam函数的实现方式
- ANDROID内存优化(大汇总——上)
- redis php扩展安装