- Newest
- Most votes
- Most comments
Hello.
Is the public IP address of the EC2 instance you are using for SSH connections correct?
If you stop and restart your EC2 instance, the public IP address will change if you have not configured ElasticIP.
https://repost.aws/knowledge-center/ec2-recover-ip-address
Also, were you doing anything on the OS before restarting the EC2 instance?
If you have been working, that work may be affecting you.
This can only be confirmed on instances built on AWS Nitro System, but have you checked the EC2 system logs?
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/troubleshoot-unreachable-instance.html#instance-console-console-output
Also try restoring from a snapshot.
https://docs.aws.amazon.com/prescriptive-guidance/latest/backup-recovery/restore.html
Relevant content
- asked 3 years ago

I reached support and they said that grub was corrupted. Is there a way to fix it? How can I make sure that it's actually grub and not something else?
Why not start one normal EC2 instance, mount the EBS with the problem on that instance, and check the system log etc. I think you can see if there are any other problems by looking at the logs. https://repost.aws/knowledge-center/ec2-linux-emergency-mode
I don't know if this applies to your EC2, but I think you can recover if you can revert to a stable kernel version. https://repost.aws/knowledge-center/revert-stable-kernel-ec2-reboot