修改/etc/ssh/sshd_config 把#Port 22修改成其他端口比如12306 修改以后重启sshd即可: /etc/init.d/ssh restart 或service sshd restart 转载请注明:21运维 » linux下如何修改ssh端口