Score:0

Public key for /etc/ssh/whatever does not match private key - but it does

cn flag

When I start my ssh service (on a Devuan Chimaera Linux box), I get the warnings:

Public key for /etc/ssh/ssh_host_rsa_key does not match private key
Public key for /etc/ssh/ssh_host_ecdsa_key does not match private key
Public key for /etc/ssh/ssh_host_ed25519_key does not match private key
Public key for /etc/ssh/ssh_host_rsa_key does not match private key
Public key for /etc/ssh/ssh_host_ecdsa_key does not match private key
Public key for /etc/ssh/ssh_host_ed25519_key does not match private key

So, I checked the RSA keys using the method described here: How to check if an RSA public / private key pair match ... and they do match.

What's going on? I should mention SSH'ing using RSA keys seems to work.

pl flag
You may need to recreate your host keys: `rm /etc/ssh/ssh_host_*_key* ; dpkg-reconfigure openssh-server; service ssh restart`
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.