CentOS 7.0默認使用的是firewall作爲防火牆
查看防火牆狀態
firewall-cmd --state
1
停止firewall
systemctl stop firewalld.service
1
禁止firewall開機啓動
systemctl disable firewalld.service
1
轉自:CentOS 6和CentOS 7防火牆的關閉
關閉selinux
進入到/etc/selinux/config文件
vi /etc/selinux/config
1
將SELINUX=enforcing改爲SELINUX=disabled
配製免密登錄的命令
ssh-keygen -t rsa
ssh-copy-id root@master