sshd.service holdoff time over, scheduling restart

sshd.service holdoff time over, scheduling restart

sshd.service holdoff time over, scheduling restartsshd.service holdoff time over, scheduling restart, kasus ini terjadi pada sistem operasi centos 7 ketika ada script melakukan pengecekan port ssh setiap 30 detik sekali. karena kesalahan script di server yang lain mengakibatkan ssh server utama menjadi error, tidak bisa di restart/stop/start, untuk ssh terkadang tidak bisa. Setelah dilakukan pengecekan status sshd muncul error seperti berikut:

[root@saad saad]# systemctl status sshd
● sshd.service - OpenSSH server daemon
   Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
   Active: activating (start) since Mon 2022-07-25 23:56:51 WIB; 2s ago
     Docs: man:sshd(8)
           man:sshd_config(5)
 Main PID: 1076 (sshd)
   CGroup: /system.slice/sshd.service
           └─1076 /usr/sbin/sshd -D

Jul 25 23:56:51 saad.my.id systemd[1]: sshd.service holdoff time over, scheduling restart.
Jul 25 23:56:51 saad.my.id systemd[1]: Stopped OpenSSH server daemon.
Jul 25 23:56:51 saad.my.id systemd[1]: Starting OpenSSH server daemon...
Jul 25 23:56:51 saad.my.id sshd[1076]: Server listening on 0.0.0.0 port 50022.

dan ketika mencoba untuk start service terdapat error sebagai berikut:

[root@saad saad]# systemctl start sshd
Job for sshd.service failed because a timeout was exceeded. See "systemctl status sshd.service" and "journalctl -xe" for details.

dan ketika di cek statusnya setelah error tersebut sebagai berikut:

[root@saad saad]# systemctl status sshd
● sshd.service - OpenSSH server daemon
   Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: timeout) since Mon 2022-07-25 23:45:55 WIB; 39s ago
     Docs: man:sshd(8)
           man:sshd_config(5)
  Process: 31986 ExecStart=/usr/sbin/sshd -D $OPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 31986 (code=exited, status=0/SUCCESS)

Jul 25 23:45:55 saad.my.id systemd[1]: Failed to start OpenSSH server daemon.
Jul 25 23:45:55 saad.my.id systemd[1]: Unit sshd.service entered failed state.
Jul 25 23:45:55 saad.my.id systemd[1]: sshd.service failed.

Solusi

untuk solusi sebagai berikut
1. Disable SELinux
– Edit file /etc/selinux/config, ubah menjadi SELINUX=disabled
– Masukan perintah berikut:

setenforce 0

2. Reinstall openssh-server

 yum reinstall openssh-server

Selesai
Selamat mencoba!!

Berikut layanan yang ada di saadwebid terkait zimbra
Layanan Jasa Maintenance Zimbra
Layanan Jasa Migrasi Zimbra Mail Server
VPS/Cloud Zimbra
SSL Zimbra Mail Server
SMTP Relay
Layanan Antivirus, Antispam dan Antimalware

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *

×

Hello!

Klik salah satu dibawah untuk chat WhatsApp atau kirim email kepada kami ke info@saad.web.id

× WhatsApp Kami
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.