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

已提問 2 個月前檢視次數 109 次
2 個答案
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
專家
已回答 2 個月前
  • 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
已回答 2 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南