Server refused our key -EC2 instance issue

836    Asked by KalyaniMalhotra in Devops , Asked on Jul 18, 2021

when I try to login to AWS console with putty it sends error that "server refused our key" Steps Followed: 

1.launched EC2 instance 

2.Downloaded the key 

3.Converted the key using putty gen 

4.Open putty --added the converted key to auth path 

5.Copied public key and login with putty 

6.after entering user name it says "server refused our key" 

Any suggestion would be helpful. How do I fix server refused our key aws?

Answered by Jake Edmunds

Reason: This can occur when your key pair is not converted properly or used the wrong key pair. If you enter the username wrong then also this error will occur.

Solution: First, load the key pair then directly click on save private key and use that key in launching the instance. Use the username according to the AMI.

Amazon Linux: ec2-user

Ubuntu: ubuntu

How do I fix server refused our key aws?

To solve the "server refused our key" error, you can do the following steps: Open PuTTYgen, Go to File > Load Private key and open your Private Key File. Highlight the Public key that was created in the text box and copy it to the clipboard. Open the authorized_keys file and paste the public key.



Your Answer

Interviews

Parent Categories