[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 //346255244345244204346230257347224250346210267347273204347232204345256266347233256345275225
/etc/ssh/sshd_config line 135: Bad Match condition
参考网址: