同じIPアドレスを使用中にリモートホストIDが変更されました。

同じIPアドレスを使用中にリモートホストIDが変更されました。

別のボックスでsshを試みると、次のメッセージが表示されます。

It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is

Please contact your system administrator.
Add correct host key in .ssh/known_hosts to get rid of this message.
Offending key in .ssh/known_hosts:4
RSA host key for _ has changed and you have requested strict checking.
Host key verification failed.

私のKnown_hostsファイルにはSSH経由で接続したいボックスが含まれていますが、ファイル内の他のボックスでのみ機能します。私は読んだこれ問題がありますが、両方のボックスが同じIPアドレスにあるため、ソリューションは機能しませんでした。

ベストアンサー1

簡単な方法は4行を削除することです(提案で述べたように - .ssh/known_hosts:4)Known_hostファイルでもう一度やり直してください。

おすすめ記事