A user is trying to connect to a running EC2 instance using SSH. However, the user gets a Host key not found
error. Which of the below mentioned options is a possible reason for rejection?
A.
The user has provided the wrong user name for the OS login
B.
The instance CPU is heavily loaded
C.
The security group is not configured properly
D.
The access key to connect to the instance is wrong
Explanation:
If the user is trying to connect to a Linux EC2 instance and receives the Host Key not found error the probable
reasons are:
The private key pair is not right
The user name to login is wrong
B, C wouldn’t even get you to the instance. D is not used to access. A. is the only logical answer.
Answer is A
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html#TroubleshootingInstancesConnectingMindTerm
Error: Host key not found, Permission denied (publickey), or Authentication failed, permission denied
If you connect to your instance using SSH and get any of the following errors, Host key not found in [directory], Permission denied (publickey), or Authentication failed, permission denied, verify that you are connecting with the appropriate user name for your AMI and that you have specified the proper private key (.pem) file for your instance.
a
A.
D is wrong because — access key is different from ssh private key.