[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/aJun 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
转载于:https://www.cnblogs.com/yanduanduan/p/9145643.html