关于SSH无法启动,启动无响应,无错误日志
在更新完OpenSSH之后,,启动或者重启时,出现执行完命令长时间无回显,无错误日志情况。对于这种现象,修改程序的启动方式或者能够解决你的问题。
现象如下:
我再更新完openssh之后查看版本,想着重启下结果出现下列情况,重启过程像是被卡住
[root@CCDI openssh-9.6p1]# ssh -V
OpenSSH_9.6p1, OpenSSL 3.2.0 23 Nov 2023
[root@CCDI openssh-9.6p1]#
[root@CCDI openssh-9.6p1]# systemctl restart sshd
Job for sshd.service failed because a timeout was exceeded.
See “systemctl status sshd.service” and “journalctl -xe” for details.
[root@CCDI openssh-9.6p1]#
查看systemctl status sshd.service并没有什么有用信息
[root@CCDI openssh-9.6p1]# systemctl status sshd.service
● sshd.service - OpenSSH server daemon
Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
Active: activating (start) since Fri 2024-03-08 16:50:31 CST; 58s ago
Docs: man:sshd(8)
man:sshd_config(5)
Main PID: 38285 (sshd)
Tasks: 1
Memory: 2.7M
CGroup: /system.slice/sshd.service
└─38285 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
3月 08 16:50:31 CCDI systemd[1]: Starting OpenSSH server daemon…
3月 08 16:50:31 CCDI sshd[38285]: /etc/ssh/sshd_config line 78: Unsupported option GSSAPIAuthentication
3月 08 16:50:31 CCDI sshd[38285]: /etc/ssh/sshd_config line 79: Unsupported option GSSAPICleanupCredentials
3月 08 16:50:31 CCDI sshd[38285]: /etc/ssh/sshd_config line 144: Deprecated option RSAAuthentication
3月 08 16:50:31 CCDI sshd[38285]: /etc/ssh/sshd_config line 146: Deprecated option RhostsRSAAuthentication
3月 08 16:50:31 CCDI sshd[38285]: Server listening on 0.0.0.0 port 22.
3月 08 16:50:31 CCDI sshd[38285]: Server listening on :: port 22.
查看 journalctl -xe也没有
– sshd.service 单元已开始启动。
3月 08 16:52:43 CCDI sshd[38473]: /etc/ssh/sshd_config line 78: Unsupported option GSSAPIAuthentication
3月 08 16:52:43 CCDI sshd[38473]: /etc/ssh/sshd_config line 79: Unsupported option GSSAPICleanupCredentials
3月 08 16:52:43 CCDI sshd[38473]: /etc/ssh/sshd_config line 144: Deprecated option RSAAuthentication
3月 08 16:52:43 CCDI sshd[38473]: /etc/ssh/sshd_config line 146: Deprecated option RhostsRSAAuthentication
3月 08 16:52:43 CCDI sshd[38473]: Server listening on 0.0.0.0 port 22.
3月 08 16:52:43 CCDI sshd[38473]: Server listening on :: port 22.