hongbin
hongbin

Reputation: 81

The authenticity of host ...can't be established when I connect to the instance.AWS EC2

AWS EC2 I tried it and don't know why it doesn't work?

Example: ssh -i "bruce202101.pem" [email protected]

cmd: D:\awskey>ssh -i "bruce202101.pem" [email protected] The authenticity of host 'ec2-18-218-105-7.us-east-2.compute.amazonaws.com (18.218.105.7)' can't be established. ECDSA key fingerprint is SHA256:9N7GOCZxXLqE5+NGfIykiDDSP8G+jXwLDHHmDaiBhrc. Are you sure you want to continue connecting (yes/no)?

Upvotes: 5

Views: 7698

Answers (1)

Deadron
Deadron

Reputation: 5289

This is normal the first time you connect to a remote ssh host. As a part of the ssh connection there is an identity establishment mechanism. If you do not manually add the identity of the remote host to your local config prior to connection it will prompt you the first time you connect and then save it to your local config. Assuming you are connecting to the right server and it is secure it should be safe to answer yes to the question.

Upvotes: 6

Related Questions