![/etc/ssh/whatever 的公钥与私钥不匹配 - 但是它匹配](https://linux22.com/image/771216/%2Fetc%2Fssh%2Fwhatever%20%E7%9A%84%E5%85%AC%E9%92%A5%E4%B8%8E%E7%A7%81%E9%92%A5%E4%B8%8D%E5%8C%B9%E9%85%8D%20-%20%E4%BD%86%E6%98%AF%E5%AE%83%E5%8C%B9%E9%85%8D.png)
当我启动我的 ssh 服务(在 Devuan Chimaera Linux 机器上)时,我收到警告:
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
因此,我使用此处描述的方法检查了 RSA 密钥: 如何检查 RSA 公钥/私钥对是否匹配 ...而且它们确实匹配。
发生了什么事?我应该提一下,使用 RSA 密钥进行 SSH 似乎有效。