Unable to start the sshd service

Solution Verified - Updated -

Issue

  • sshd.service is failing with the following error:
[root@rhel78 ~]# systemctl status sshd.service -l
● 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 2021-12-22 18:42:40 IST; 18s ago
     Docs: man:sshd(8)
           man:sshd_config(5)
  Process: 23085 ExecStart=/usr/sbin/sshd -D $OPTIONS (code=exited, status=255)
 Main PID: 23085 (code=exited, status=255)

Dec 22 18:42:40 rhel78 systemd[1]: Failed to start OpenSSH server daemon.
Dec 22 18:42:40 rhel78 systemd[1]: Unit sshd.service entered failed state.
Dec 22 18:42:40 rhel78 systemd[1]: sshd.service failed.

Environment

  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 7
  • OpenSSH

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content