[root@localhost /]# vi /etc/ssh/sshd_config Port 22 #修改默认端口 保存并退出 [root@localhost /]#service ssh restart