SSH異常“Failed to start OpenSSH Server daemon”


[root@bogon yum]# systemctl status sshd.service
● sshd.service - OpenSSH server daemon
   Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Wed 2018-06-06 00:48:43 PDT; 37s ago
     Docs: man:sshd(8)
           man:sshd_config(5)
  Process: 59425 ExecStart=/usr/sbin/sshd -D $OPTIONS (code=exited, status=255)
 Main PID: 59425 (code=exited, status=255)

Jun 06 00:48:43 bogon systemd[1]: sshd.service: main process exited, code=exited, status=255/n/a
Jun 06 00:48:43 bogon systemd[1]: Failed to start OpenSSH server daemon.
Jun 06 00:48:43 bogon systemd[1]: Unit sshd.service entered failed state.
Jun 06 00:48:43 bogon systemd[1]: sshd.service failed.

執行命令: /usr/sbin/sshd -t

即可看到具體錯誤的地方:

Missing Match criteria for //\346\255\244\345\244\204\346\230\257\347\224\250\346\210\267\347\273\204\347\232\204\345\256\266\347\233\256\345\275\225
/etc/ssh/sshd_config line 135: Bad Match condition

參考網址:

https://yq.aliyun.com/articles/103191?t=t1


免責聲明!

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



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