centos7 防火墙和免密设置

CentOS 7.0默认使用的是firewall作为防火墙

查看防火墙状态
firewall-cmd --state

停止firewall
systemctl stop firewalld.service

禁止firewall开机启动
systemctl disable firewalld.service

关闭selinux
进入到/etc/selinux/config文件

vi /etc/selinux/config
将SELINUX=enforcing改为SELINUX=disabled

配制免密登录的命令

ssh-keygen -t rsa 
ssh-copy-id root@master
posted @ 2020-09-26 00:12  inspiresn  阅读(123)  评论(0)    收藏  举报