I am using amazon ec2 instance for one of my products and i am stuck with a very big problem. I am new to server and was just looking to configure UFW for only my ipaddress and i updated a rule for it and enabled the UFW, after sometime i cleared the UFW rule and logged out of my server. But now I am not able to get into the server.. it is giving an error like..

Network connection timed out

I tried pinging to my domain address and it says

Pinging domain.com [] with 32 bytes of data
Request timed out.
Request timed out.
Request timed out. 
Request timed out.

Ping statistics for
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

the ip address and the domain name provided is just example..

and even my website is giving an error like..


i checked my ec2 instance in the aws console..it is running. So can someone help me how i can get everything back to normal. I make use of windows system with putty for ssh connection.


Typically the solution would be to log in via console, but EC2 does not support that. Their typical solution is to stop the broken instance, detach its root disk, attach it to another instance, fix the problem, and then reattach it. The tutorial is here: https://aws.amazon.com/articles/5213606968661598

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.