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