如何更改Linux的ssh端口时间:2025-05-02 13:03:371. 修改/etc/ssh/sshd_config里的Port字段 Port 22改为Port 1000(你自定义的端口) 2. 重启sshd服务 #service sshd restart