目录

debian如何更改ssh默认端口号提高安全性

发表于
更新于
63 306

nano /etc/ssh/sshd_config 找到端口号增加一个新的端口号,等测试完毕后在注释掉22

防火墙添加新的端口号入站规则

systemctl restart sshd

ss -ntl 或 netstat -ntl 查看一下端口

参考:CentOS/Debian/Ubuntu Linux修改SSH默认22端口 - VPS侦探