sshd啟動失敗,一直重啟


sshd出現了周期性連不上的情況,查看日志如下:

/var/log/secure:

sshd[3170]: Server listening on 0.0.0.0 port 22.
sshd[3170]: Received signal 15; terminating.

/var/log/messages:

systemd: sshd.service holdoff time over, scheduling restart.
systemd: Starting OpenSSH server daemon...
systemd: sshd.service start operation timed out. Terminating.
systemd: Failed to start OpenSSH server daemon.
systemd: Unit sshd.service entered failed state.
systemd: sshd.service failed.
systemd: sshd.service holdoff time over, scheduling restart.
systemd: Starting OpenSSH server daemon...
systemd: sshd.service start operation timed out. Terminating.
systemd: Failed to start OpenSSH server daemon.
systemd: Unit sshd.service entered failed state.
systemd: sshd.service failed.
systemd: sshd.service holdoff time over, scheduling restart.
systemd: Starting OpenSSH server daemon...
systemd: sshd.service start operation timed out. Terminating.
systemd: Failed to start OpenSSH server daemon.
systemd: Unit sshd.service entered failed state.
systemd: sshd.service failed.

journalctl -xe:

sshd.service start operation timed out. Terminating.
sshd[8425]: Received signal 15; terminating.
systemd[1]: Failed to start OpenSSH server daemon.
-- Subject: Unit sshd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit sshd.service has failed.
-- 
-- The result is failed.
systemd[1]: Unit sshd.service entered failed state.
systemd[1]: sshd.service failed.
polkitd[457]: Unregistered Authentication Agent for unix-process:8419:67059806 (system bus name :1.2658, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)

以上就是報錯信息,完全找不到原因在哪里, sshd -t 也沒有任何輸出

無奈只能選擇重裝opendssh

yum remove openssh
yum install openssh openssh-server openssh-clients
service sshd start
(systemctl start sshd)

重裝之后就好了,沒有再出現進程被殺死的情況


免責聲明!

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



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