当我启动我的 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 似乎有效。