1.关闭防火墙
查看防火墙状态
systemctl status firewalld.service
关闭防火墙
systemctl stop firewall.service
设置防火墙开机不自动启动
systemctl disable firewalld.service
2.免密登陆(ssh)
首先生成公私钥
ssh-keygen -t rsa
打开用户目录下的.ssh目录
cd .ssh
将公钥文件拷贝成authorized_keys
cp id_rsa.pub authorized_keys