1、首先执行sudo vim /etc/ssh/sshd_config 2、修改以下三行 输入完毕按ESC 输入:wq保存 3、输入/etc/init.d/ssh restart 重启ssh服务 4、远程SSH连接 成功