修改端口:vi /etc/ssh/sshd_config移动键盘上/下键,找到 #Port 22,键盘上字母A修改你需要的成功后,shift+:“wq”保存执行命令:/etc/init.d/sshd restart