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, 2019 in AWS by Hannah
• 18,520 points
1,059 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, 2019 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,640 points
3,265 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 13, 2019 in AWS by Mukesh
825 views
0 votes
1 answer
0 votes
1 answer
+1 vote
1 answer

AWS ssh access permission denied (public key issue)

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

answered May 13, 2019 in AWS by sunshine
• 1,300 points
7,165 views
0 votes
1 answer

How do I create an alarm for my load balancer using the Amazon EC2 console?

Follow these steps: Open the Amazon EC2 console On ...READ MORE

answered May 17, 2019 in AWS by Rhea
1,646 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP