Skip to content

Fix Lightsail SSH

When updating the Ubuntu system, I accidentally changed the SSH settings and the broswer SSH won't allow me to login. The error message was something like:

Log in failed. If this instance has just started up, try again in a minute or two.


In order to fix this issue, you can ssh into the system using the SSH key and then add the following two lines to the SSH config file at "/etc/ssh/sshd_config"

TrustedUserCAKeys /etc/ssh/
CASignatureAlgorithms +ssh-rsa

Restart the instance and the browser-based SSH should work again.