Help us understand the problem. What is going on with this article?

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 a host key has just been changed. The fingerprint for the ECDSA key sent by the remote host isの解決法

AWSの作業をしていたら以下のエラー。

S:.ssh sahota0701nemoto$ ssh -i aaaa.pem ec2-user@18.180.202.188
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:TyeE9O0wDaMbxrOIaYWj50sPOgWFnJzkEs55zjhHUuk.
Please contact your system administrator.
Add correct host key in /Users/shogo/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/shogo/.ssh/known_hosts:10
ECDSA host key for 18.180.202.188 has changed and you have requested strict checking.
Host key verification failed.

キーがなくなった。したがって新しい物を作ります。

S:.ssh sahota0701nemoto$ ssh-keygen -R 18.180.202.188
# Host 18.180.202.188 found: line 10
/Users/shogo/.ssh/known_hosts updated.
Original contents retained as /Users/shogo/.ssh/known_hosts.old
S:.ssh sahota0701nemoto$ 
$ ssh-keygen -R 自身のIpアドレスもしくは弾かれた物。

終わり。

shota0701nemoto
エンジニア未経験から転職活動をしています(2020年8月現在。) 興味を持った方は下記wantedlyURLまたはメールアドレスから連絡をいただければと思います。 wantedlyはこちら。 https://www.wantedly.com/users/18321863
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした