Unable to load key

0

When I connect SSH I get this error. I am using lightsail Debian instance. The website has stopped working.

Unable to load key The SSH connection could not be established because of a mis-configured SSH key. Use a third-party SSH client such as PuTTy to connect to your instance and update your SSH key. Learn more about connecting to your instance . Contact AWS Support if you continue to see this error.

CLIENT_UNAUTHORIZED [ 7 6 9 ]

1 Answer
0

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:

  1. 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.

  2. 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.
  3. 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

  4. If you're still unable to connect, you might need to use the Lightsail console to reset your instance's password or SSH key.

  5. 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

profile picture
answered 2 months ago
profile picture
EXPERT
reviewed 2 months ago
AWS
SUPPORT ENGINEER
revised 2 months ago
  • the new instance that I created using the snapshot, shows a blank screen when I log into ssh client. nothing appears

    1. I don't have a password and I am unable to reset the SSK key, since I am not able to log into SSH client using putty, or AWS console

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