Lightsail Instance refuse key

0

I've been using AWS Lightsail for a few years (5-6) from now and never any problem when creating a new instance. I created a new basic instance with LAMP, the one that comes by default with bitnami, and after it creation I can't connect via Putty as it says "Server refused our key". I'm using the default key, the same one I use for another instance. I tried deleting the instance and creating a new one and creating a new pair of keys but nothing works.

Please, if anyone have a solution for this error, that would be amazing.

Thanks in advance!

Eduardo
asked 3 months ago402 views
1 Answer
3
Accepted Answer

Hello.

Please update your Putty version to the latest version, or try SSHing into Lightsail from your browser and checking the sshd log to see if any errors are output.
I had a similar experience in the past, but it was resolved after updating Putty to the latest version.
At that time, I checked the Lightsail sshd log and found that there was a problem with SSH key authentication.
Therefore, I recommend that you first make an SSH connection from your browser and check the sshd logs.
https://docs.aws.amazon.com/lightsail/latest/userguide/lightsail-how-to-connect-to-your-instance-virtual-private-server.html

profile picture
EXPERT
answered 3 months ago
profile picture
EXPERT
reviewed 3 months ago
profile picture
EXPERT
reviewed 3 months ago
  • Thanks for your answer. I was trying to solve this problem for a week!

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions