Linux startup sshd service error can not load host how to do?

  

Linux when starting the sshd service, an error message, prompting Could not load host key: /etc /ssh /ssh_ed25519_key, what does this error code mean? ? How do I solve the problem when I encounter the error code? Let's learn together with Xiaobian.

The new version of opensshd added Ed25519 do signature verification, and before that there was no system of this certificate algorithm, it is also very simple way to generate a new certificate to the next.

ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ED25519_key

After entering the command /etc/init.d/ssh start, the prompt appears:

Could not load Host key: /etc/ssh/ssh_host_ED25519_key

Then enter ssh-keygen -t dsa -f /etc/ssh/ssh_host_ED25519_key

Restart ssh, then just fine

The above is the solution to the error code generated by the Linux boot sshd service. If you encounter the same problem, you can enter the corresponding command to solve the problem as prompted.

Copyright © Windows knowledge All Rights Reserved