关闭selinux
vim /etc/selinuc/config 中SELINUX=enforce修改为SELINUX=disabled
重启系统
然后vim /etc/ssh/sshd_config
修改Port 12345
重新加载ssh服务 systemctl reload sshd
关闭selinux
vim /etc/selinuc/config 中SELINUX=enforce修改为SELINUX=disabled
重启系统
然后vim /etc/ssh/sshd_config
修改Port 12345
重新加载ssh服务 systemctl reload sshd
本文标题:centos7修改ssh端口
本文链接:https://www.haomeiwen.com/subject/xnokwxtx.html
网友评论