1、使用VNC登录服务器 2、进入/etc/ssh目录:cd /etc/ssh 3、使用命令检查sshd_config文件的错误:sshd -t 4、针对对应错误修改文件 5、重启sshd:systemctl restart sshd