端口号封了,改成9000以上。 ubuntu修改ssh服务的端口号 一、找到ssh配置文件位置 vim /etc/ssh/sshd_config 二、修改ssh登录端口号 修改 port 22 为 port xxxx 或者添加 三、重启ssh服务 /etc/init.d/ssh restart