Centos7 ssh服务重启出错
2019-05-29 本文已影响0人
远or广
IP配置正确 selinux 和firewalld都关闭的前提下
SSH 服务时出现如下错误:status=255 ,Bad configuration options

tail /var/log/messages
发现sshd_config line 117行出现配置报错

先 vi /etc/ssh/sshd_config
在 ESC :117 回车
找到出错行注释掉
systemctl restart sshd
systemctl status sshd
服务恢复正常