Search code examples
amazon-web-servicesamazon-ec2cloudvps

Rebooting or (Stopping and Starting) an EC2 instance makes it impossible to connect


I have launched 5 or 6 EC2 instances and every time I reboot one or (stop and start it) using the AWS console (Not with the Command Line), I find myself unable to connect to it. When I try to connect using ssh, this is what gets logged:

ssh: connect to host ec2-xx-xxx-xxx-xx.eu-west-3.compute.amazonaws.com port 22: Connection timed out

And when I use the AWS console to try to connect on the browser, this is what I see: enter image description here

I have waited hours after restarting and still the same result and this happens with every single instance and every time I reboot it or stop and restart it.

This is deeply frustrating and there seems to be no answer on the internet.


Solution

  • Wait for some time after reboot to connect to instance again.