1.修改sshd_config文件,在Port 22下增加Port 你要的端口
vim /etc/ssh/sshd_config
2.重启ssh服务
systemctl restart sshd
3.防火墙增加新的ssh端口,参考https://www.code-tool.com/post/1
注意:本文归作者所有,未经作者允许,不得转载
1.修改sshd_config文件,在Port 22下增加Port 你要的端口
vim /etc/ssh/sshd_config
2.重启ssh服务
systemctl restart sshd
3.防火墙增加新的ssh端口,参考https://www.code-tool.com/post/1
注意:本文归作者所有,未经作者允许,不得转载