Job for ssh.service failed because the control process exited with error code.......

时间:2021-03-22 17:43:09

转载自:https://blog.csdn.net/woailyoo0000/article/details/79782986

笔者最近更新ubuntu系统,在更新之前设置了证书信任文件,重启以后ssh短暂可连接,马上就中断

报错

"systemctl status ssh.service" and "journalctl -xe" for details.

按他套路来一点折都没有,最终在

CentOS7启动SSH服务报:Job for ssh.service failed because the control process exited with error code.......

找到解决方法,执行以下命令找到错误地方了

/usr/sbin/sshd -T
/etc/ssh/sshd_config: line : Bad configuration option: IdentityFile
/etc/ssh/sshd_config: terminating, bad configuration options

手工删除了ssh配置参数