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
Suggested Answer:A🗳️
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
If you connect to your instance using SSH and get any of the following errors, Host key not found in [directory], Permission denied (publickey), Authentication failed, permission denied, or Connection closed by [instance] port 22, 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.
it is A
Error: Permission denied or connection closed by [instance] port 22
If you connect to your instance using SSH and get any of the following errors, Host key not found in [directory], Permission denied (publickey), Authentication failed, permission denied, or Connection closed by [instance] port 22, 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.
The appropriate user names are as follows:
For Amazon Linux 2 or the Amazon Linux AMI, the user name is ec2-user.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Finger41
2 years agoalbert_kuo
9 months, 2 weeks agowaterzhong
2 years agoxxxdolorxxx
2 years, 8 months agoDrey
2 years, 9 months agoawscertified
2 years, 9 months ago