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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠