Unable to start sshd service with error: /usr/sbin/sshd: error while loading shared libraries: libldap-2.4.so.2: cannot open shared object file
Issue
- Unable start sshd service with below error in secure logs.
# 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: exit-code) since Fri 2018-05-11 08:37:39 PDT; 16s ago
Docs: man:sshd(8)
man:sshd_config(5)
Process: 10174 ExecStart=/usr/sbin/sshd $OPTIONS (code=exited, status=127)
May 11 08:37:39 rhel7 systemd[1]: sshd.service: control process exited, code=exited status=127
May 11 08:37:39 rhel7 systemd[1]: Failed to start OpenSSH server daemon.
May 11 08:37:39 rhel7 systemd[1]: Unit sshd.service entered failed state.
May 11 08:37:39 rhel7 systemd[1]: sshd.service failed.
# less /var/log/secure
Error: /usr/sbin/sshd: error while loading shared libraries: libldap-2.4.so.2: cannot open shared object file
Environment
- Red Hat Enterprise Linux 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
