1.修改常用端口 ssh端口 vi /etc/ssh/sshd_config 找到#Port 22这一行 去掉#,同时把这个端口改成你要的 保存退出 重启ssh /etc/init.d/sshd restart