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

feita há 2 meses109 visualizações
2 Respostas
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
ESPECIALISTA
respondido há 2 meses
  • 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
respondido há 2 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas