转载自: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 34: Bad configuration option: IdentityFile /etc/ssh/sshd_config: terminating, 1 bad configuration options
手工删除了ssh配置参数
本博客文章绝大多数为原创,少量为转载,代码经过测试验证,如果有疑问直接留言或者私信我。
创作文章不容易,转载文章必须注明文章出处;如果这篇文章对您有帮助,点击右侧打赏,支持一下吧。
创作文章不容易,转载文章必须注明文章出处;如果这篇文章对您有帮助,点击右侧打赏,支持一下吧。