以下サイトを見ながらEC2へのSSH接続を試みています。
(デプロイ編①)世界一丁寧なAWS解説。EC2を利用して、RailsアプリをAWSにあげるまで
ローカル側に公開鍵と秘密鍵とconfigファイルを作成し、サーバー側に公開鍵と同じ内容のauthorized_keysを作成しています。
公開鍵に実行権限を与えてsshコマンドを実行したら以下のエラーとなりました。
Mac
1@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 2@ WARNING: POSSIBLE DNS SPOOFING DETECTED! @ 3@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 4The ECDSA host key for ***_key_rsa has changed, 5and the key for the corresponding IP address 23.217.138.110 6is unknown. This could either mean that 7DNS SPOOFING is happening or the IP address for the host 8and its host key have changed at the same time. 9@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 10@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ 11@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 12IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! 13Someone could be eavesdropping on you right now (man-in-the-middle attack)! 14It is also possible that a host key has just been changed. 15The fingerprint for the ECDSA key sent by the remote host is 16SHA256:6MJJtqKhTdHXF2yzH/0UqGN2o4RZ2PDEp2ttdA/IJR8. 17Please contact your system administrator. 18Add correct host key in /Users/(user name)/.ssh/known_hosts to get rid of this message. 19Offending ECDSA key in /Users/(user name)/.ssh/known_hosts:4 20ECDSA host key for ***_key_rsa has changed and you have requested strict checking. 21Host key verification failed.
「ECDSAホストキーが変更され、厳密なチェックを要求しました」とありますが、そもそも変更した覚えがない。。。
【AWS EC2】ログインしようとすると@@WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!@@
のようにElastic IP変更を試しても結果は同じでした。
これは。。。どうしたらいいものでしょうか??

回答2件
あなたの回答
tips
プレビュー