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 in AWS by akhtar
• 28,620 points
48 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 by MD
• 66,300 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
7,909 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
740 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,260 points
2,535 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 in AWS by MD
• 66,300 points
1,534 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 in AWS by MD
• 66,300 points
234 views