运维
SELinux开启 标签描述

1、背景 Centos7.9开启SELinux的状态下无法使用远程工具SSH登录 2、解决方法 在Centos7.9上操作如下,查看SELinux状态 /usr/sbin/sestatus-v SELinuxstatus:enabled SELinux是enable开启状态, 添加规则放行远程连接端口semanage port-a-tssh_port_t-ptcp22 如果没有semanage命令 yum-yinstallpolicycoreutils-python 安装完成过后在执行上述添加端口号的命令  semanageport-l|grepssh 查看结果:...