sshd host key exists, but "sshd[xxxx]: error: Could not load host key: /etc/ssh/ssh_host_dsa_key" are seen in logs

Solution Verified - Updated -

Issue

The following errors are found in /var/log/messages even after creating of the corresponding dsa key pair:

Apr 10 09:52:53 rhel7 sshd[8654]: error: Could not load host key: /etc/ssh/ssh_host_dsa_key
Apr 10 09:52:53 rhel7 sshd[8658]: error: Could not load host key: /etc/ssh/ssh_host_dsa_key
Apr 10 10:14:03 rhel7 sshd[8734]: error: Could not load host key: /etc/ssh/ssh_host_dsa_key
Apr 10 10:14:03 rhel7 sshd[8733]: error: Could not load host key: /etc/ssh/ssh_host_dsa_key

Environment

Red Hat Enterprise Linux (all versions)
openssh-server (all versions)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In