setenforce 0
vim /etc/sysconfig/selinux
SELINUX=enforcing 改为 SELINUX=disabled
重启服务reboot
firewall-cmd --zone=public --add-port=7788/tcp --permanent
firewall-cmd --reload
vim /etc/ssh/sshd_config
systemctl restart sshd.service
setenforce 0
vim /etc/sysconfig/selinux
SELINUX=enforcing 改为 SELINUX=disabled
重启服务reboot
firewall-cmd --zone=public --add-port=7788/tcp --permanent
firewall-cmd --reload
vim /etc/ssh/sshd_config
systemctl restart sshd.service
本文标题:centos7 ssh selinux 防火墙
本文链接:https://www.haomeiwen.com/subject/llwuuhtx.html
网友评论