centos 更改ssh端口

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_29755359/article/details/81606558

编辑配置文件 

vi /etc/ssh/sshd_config

重启

service sshd restart

有防火墙的情况

编辑配置文件

vi /etc/sysconfig/iptables

这一条默认为22,ssh设置的端口 

重启

service iptables restart

参考

https://www.cnblogs.com/liyuanhong/articles/7064582.html

https://blog.csdn.net/maquealone/article/details/72673456

猜你喜欢

转载自blog.csdn.net/qq_29755359/article/details/81606558