error aws login Permission denied publickey

0 votes

Hi Guys,

I am trying to login to my EC2 instance from the Linux system. But it is showing me the below error.

error: aws login 'Permission denied (publickey)' 
Sep 21, 2020 in AWS by akhtar
• 38,260 points
995 views

1 answer to this question.

0 votes

Hi@akhtar,

You need to set the permissions for the key. Otherwise, aws will not allow you to log in. You can sue the below command.

$ chmod 600 ec2-keypair.pem
$ ssh -i ec2-keypair.pem ec2-user IP

answered Sep 21, 2020 by MD
• 95,460 points

Related Questions In AWS

+3 votes
2 answers

Amazon AWS Filezilla transfer says : permission denied

Well, I can't see the screenshot that ...READ MORE

answered May 3, 2018 in AWS by Cloud gunner
• 4,670 points
15,180 views
0 votes
1 answer
0 votes
1 answer

Permission Denied: AWS EC2 FTP

This is a permission issue. You can ...READ MORE

answered Mar 28, 2019 in AWS by Kolki
2,110 views
+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,175 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

ERROR 1045 (28000): Access denied for user in AWS.

Hi@akhtar, You need to reset the password for this. ...READ MORE

answered Apr 2, 2020 in AWS by MD
• 95,460 points
7,657 views
0 votes
1 answer

"access denied" error when trying to move a file into the AWS server.

Hi@akhtar, I think you are trying to transfer file to ...READ MORE

answered Apr 2, 2020 in AWS by MD
• 95,460 points
1,685 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