ssh
1.改端口
配置ssh文件 /etc/ssh/sshd_config
用journalctl -xe查看错误
有时候会报错,因为防火墙限制
2.禁止root登录
配置ssh文件 /etc/ssh/sshd_config
3.限制监听ip
加网卡
仅主机模式
配置ssh文件 /etc/ssh/sshd_config
重启服务
4.禁止密码登录
配置ssh文件 /etc/ssh/sshd_config
重启服务
配置文件中,效果如下
Rsync远程同步工具(远程数据同步)
1.服务端配置
.
2.客户端配置
3.开始运输信息(在客户端运行)
需要rsync_backup的密码
如下图 132为客户端 129为服务端
4.同步运输(与inotify)
服务端用上面的
客户端上写脚本(如下配置)
然后确保服务端开着rsync
因为服务端配置 www模块
在客户端的/backup/www 下添加删除都会有同步到服务端
进行下列操作
NFS共享文件
安装服务
1.服务器配置
查看服务端是否可以连接
2.客户端配置
启动服务 systemctl start rpcbind
取消挂载