首页

如何更改Linux的ssh端口

1. 修改/etc/ssh/sshd_config里的Port字段

Port 22改为Port 1000(你自定义的端口)

2. 重启sshd服务

#service sshd restart