Server refused my aws ec2 key

0 votes
I am trying to log into my amazon ec2 instance but the server has refused my key. Why is this happening?
Oct 21 in AWS by Hannah
• 16,720 points
32 views

1 answer to this question.

0 votes

This could happen for any of the below-listed reasons:

  1. You are using an ssh private key the corresponding public key is not listed in the authorized_keys files
  2. Cannot access authorized_keys file
  3. Do not have the right permissions to access the .ssh folder
  4. The instance was launched without a key.
  5. Authorized_keys file or .ssh folder was named wrongly or deleted by mistake
answered Oct 21 by Payal

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer

How can I just increase the size of my root disk on AWS EC2 for use with Elastic Beanstalk?

This can be done using the following ...READ MORE

answered Nov 12, 2018 in AWS by Archana
• 5,560 points
244 views
0 votes
1 answer
0 votes
1 answer

Ping request failed to my AWS EC2 instance

Add a new EC2 security group inbound rule: Type: Custom ...READ MORE

answered Mar 12 in AWS by Mukesh
40 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

AWS ssh access permission denied (public key issue)

For Ubuntu Instance, First, check whether you have ...READ MORE

answered May 13 in AWS by sunshine
• 1,240 points
201 views
0 votes
1 answer