Skip to content
创建日期: 2026-06-11 22:32:18
最后更新: 2026-06-11 22:32:18
修订次数: 1

修改ssh端口

修改 SSH 配置文件

sh
vim /etc/ssh/sshd_config

取消注释,可以添加多个 Port

c
Port 22
Port 2202

重启 SSH 服务

sh
systemctl restart sshd

Released under the MIT License.