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


轉載自: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配置參數


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM