0

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.

einpoklum
  • 1,652
  • 3
  • 21
  • 31
  • You may need to recreate your host keys: `rm /etc/ssh/ssh_host_*_key* ; dpkg-reconfigure openssh-server; service ssh restart` – Adrian Zaugg Jul 05 '22 at 09:29

0 Answers0