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,180 points
95 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,140 points

Related Questions In AWS

+3 votes
2 answers

Amazon AWS Filezilla transfer says : permission denied

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

answered May 3, 2018 in AWS by Cloud gunner
• 4,650 points
9,809 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
972 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,280 points
3,461 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,140 points
3,084 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,140 points
361 views