- Newest
- Most votes
- Most comments
This knowledge centre article addresses what might be causing your error message, as well as some possible resolutions https://repost.aws/knowledge-center/lightsail-resolve-ssh-console-errors
The specific behaviour you mention, where you copy the public key across from another server but then you can't authenticate using it, assuming there's not a mismatch with the keys it sounds like it could be permissions related. The ~/.ssh
directory should have 700 permissions, is that definitely set?
The other error you mention (blank screen with cursor in the top left corner when you try to spin up a new instance from a snapshot) isn't anything to do with the presence or absence of SSH keys, it points to an issue with the snapshot, which may point to an issue with the underlying lightsail instance. Can you go back further than three days to find a good snapshot?
I'd also recommend going through this article (https://repost.aws/knowledge-center/lightsail-resolve-ssh-console-errors) to see if any of the approaches can help with your issue.
If none of them works, can you try follow this tutorial to create a new custom SSH key pair to use with the instance?
Relevant content
- asked 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a month ago
Thanks a lot for your response.
The ~/.ssh directory should have 700 permissions, is that definitely set?
Yes after I copied over the authorization_keys and known_hosts, I assigned 700 via chmod to the /home/ubuntu/.ssh folder as well. Like I said, I had done the exact same solution about 2 months ago and that worked.
it points to an issue with the snapshot, which may point to an issue with the underlying lightsail instance
Exactly my thoughts as well. But unfortunately, there is nothing that can be done about this. Stopping and starting (which should assign a new "instance") also didn't work. The server in question is a low sized instance created maybe 3-4 years ago. So what can be done about this now?
Can you go back further than three days to find a good snapshot? We have only 7 days of snapshots. All of them face the same issue. I had a snapshot from Feb and that shows the same as well. After waiting about 10 minutes, I get this error:
An error occurred and we were unable to connect or stay connected to your instance. If this instance has just started up, try again in a minute or two.
UPSTREAM_NOT_FOUND [519]