Amazon Lightsail Log in failed – CLIENT_UNAUTHORIZED
When trying to login to Amazon Lightsail instance, I got the error
Log in failed. If this instance has just started up, try again in a minute or two.
CLIENT_UNAUTHORIZED [769]
This happens because when you update the system, you replaced the default /etc/ssh/sshd_config file provided by Amazon AWS.
To fix the error, connect to Lightsail server using SSH (terminal on Linux/Mac, putty on windows), edit file
1 |
vi /etc/ssh/sshd_config |
At the end of the file, add the following 2 lines
1 2 |
TrustedUserCAKeys /etc/ssh/lightsail_instance_ca.pub CASignatureAlgorithms +ssh-rsa |
Restart ssh service
1 |
systemctl restart ssh |
Now you should be able to login to Amazon Lightsail using AWS Console.