Home>

Premise
Create an app with Ruby on Rails 6
AWS
Amazon Linux2
Creating an ec2 instance
Connect to elastic ip
Generate port

I want to achieve
I want to authenticate my ssh key and log in to ec2

Terminal
Host key verification failed.
Applicable source code
Terminal
********** @ ********** NoMacBook-Pro ~% cd .ssh /
********** @ ********** NoMacBook-Pro .ssh% ssh -i nishiapp.pem e[email protected]
The authenticity of host '3.115.239.168 (3.115.239.168)' can't be established.
ECDSA key fingerprint is SHA256: 8eV5z9fbfN/edLyU5168YMt86B2fciDr6o75iDQXxFs.
Are you sure I want to continue connecting (yes/no/[fingerprint])?
Host key verification failed.
What I tried (hypothesis)

hypothesis
It seems that the previous key was reflected when the instance was recreated several times.
What I tried
Code

host key verification failed.


I searched for.

I referred to the link below.
Link content

Supplement

I'm a beginner and I'm sorry for the lack of words, but I asked a question if you could teach me.