0

I'm trying to connect to my EC2 instance with terminal:

ssh -i server.cer ubuntu@ec2-**-**-***-**.us-west-2.compute.amazonaws.com

but have

The authenticity of host 'ec2----.us-west-2.compute.amazonaws.com (...)' can't be established.

ECDSA key fingerprint is SHA256:*************************.

Are you sure you want to continue connecting (yes/no/[fingerprint])?

Host key verification failed

I couldn't connect to it with EC2 Instance Connect (browser-based SSH connection), but can do this with Filezilla.

If this matters I've deleted known_hosts file and made a new one.

  • 1
    Did you try to answer "yes" to the question Are you sure you want to continue connecting (yes/no/[fingerprint])? ? – Soren A Jan 21 at 12:37
  • @SorenA, yes, it solves, thanks. I've been pressing enter before – Pavel Antspovich Jan 21 at 12:38
  • Great, please acknowledge my answer below then. – Soren A Jan 21 at 12:41
3

You will have to answer "yes" to the question Are you sure you want to continue connecting (yes/no/[fingerprint])? that ssh asks.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.