SSH not working after rebooting instance.

0

After I rebooted my instance I got a change on my IP, I tried to connect to my instance with the new credentials but it did not work and gave me a time-out error.

I checked all security groups, VPC, subnets, and root tables, and everything seems to be fine but still, I can not log in to the instance via SSH or any other way.

Any ideas? it is an Ubuntu 20.4 with Mysql and PHP 7.4

I really appreciate any help you can provide. Samuel

asked 2 months ago93 views
2 Answers
1
  • Are you instance running? Ensure that your instance is running. You can verify this in the AWS Management Console.
  • Make sure you are using the correct private key corresponding to the key pair associated with the instance.
  • Try rebooting again, sometimes, a second reboot can resolve transient issues.
profile picture
EXPERT
answered 2 months ago
  • Thanks, Osvaldo,

    The instance is running, I am using the correct PEM file with proper permissions (400), I will reboot again (i have done it 3-4 times already)

    I tried rebooting it a few more times and no luck.

    Pinging the IP is giving me a timeout too.

0

Have you tried EC2 instance connect? Another option is to try SSM's terminal session capability if you have the SSM agent installed. You just need to make sure the role attached to that instance has SSM capabilities.

Carlos
answered 2 months ago

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