- Newest
- Most votes
- Most comments
The error you're encountering suggests there's an issue with the SSH key configuration on your Lightsail Debian instance. This problem can occur after system updates, particularly when upgrading to newer versions of Ubuntu or Debian.
To resolve this issue, you can try the following steps:
-
First, attempt to connect using a third-party SSH client like PuTTY, as suggested in the error message. This might work if the issue is specific to the Lightsail browser-based SSH.
-
If that doesn't work, you may need to update the SSH configuration on your instance. However, since you can't access the instance directly, you'll need to use an alternative method:
- Create a snapshot of your current instance.
- Launch a new instance from this snapshot.
- During the launch process, you can add a startup script to modify the SSH configuration.
-
In the startup script, you can add the following lines to the SSH configuration file (/etc/ssh/sshd_config):
TrustedUserCAKeys /etc/ssh/lightsail_instance_ca.pub CASignatureAlgorithms +ssh-rsa
-
If you're still unable to connect, you might need to use the Lightsail console to reset your instance's password or SSH key.
-
As a last resort, if none of the above steps work, you may need to contact AWS Support for further assistance.
Remember to review and update your security configurations once you regain access to prevent future issues while maintaining proper security practices.
Sources
CLIENT_UNAUTHORIZED [769] after update ubuntu | AWS re:Post
Unable to SSH into AWS EC2 Instance – Connection Timed Out & Forgot Credentials | AWS re:Post
the new instance that I created using the snapshot, shows a blank screen when I log into ssh client. nothing appears