Centos 7 修改sshd 端口
Centos 7 直接修改sshd端口是不生效滴。修改方法如下:
# yum provides semanage
# yum install policycoreutils-python-2.5-22.el7.x86_64
# semanage port -a -t ssh_port_t -p tcp 2188
然后修改sshd端口
# systemctl restart sshd
这下就生效了
本文来自博客园, 作者:Star-Hitian, 转载请注明原文链接:https://www.cnblogs.com/Star-Haitian/articles/9529084.html

浙公网安备 33010602011771号