AWS基礎からのネットワーク&サーバー構築という本を進めいています。
今EC2でインスタンスを作り起動を終えてSSHで接続を試みています。
ssh -i my-key.pem ec2-user@xx.xx.xx.xx
上記のコマンドを入力すると
The authenticity of host 'xx.xx.xx.xx (xx.xx.xx.xx)' can't be established. ECDSA key fingerprint is SHA256:ZJvu6jij6asjPdTc5ItVL1piDQeUcdu9XO0dPtZX4Fc. Are you sure you want to continue connecting (yes/no)?
と出てYesを打つと
Host key verification failed.
と出ます。
どうしたらいいでしょうか。
追記
qiitaの記事では
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! 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 29:24:c2:69:a3:b0:dc:4d:23:fc:9d:85:9f:ea:01:9b. Please contact your system administrator. Add correct host key in /home/grgrjnjn/.ssh/known_hosts to get rid of this message. Offending key in /home/grgrjnjn/.ssh/known_hosts:3 RSA host key for remote_host has changed and you have requested strict checking. Host key verification failed.
というエラーなのですが、私のエラーは
The authenticity of host '13.230.239.214 (13.230.239.214)' can't be established. ECDSA key fingerprint is SHA256:ZJvu6jij6asjPdtc5ItVL1piDQeUcdu9XOedPtZX4Fc. Are you sure you want to continue connecting (yes/no)? Host key verification failed.
と出ております。known_hostsに問題があるのでしょうか?
私自身キーペアに問題があるのかと思い、もう一度インスタンスを立て直したのですが変わりませんでした。。
回答1件
あなたの回答
tips
プレビュー