Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using Amazon EC2 services & and its working correctly but suddenly from 3-days before when we try to access our instance using ssh connection we got folllowing error :

"ssh: connect to host ec2----** port *: Connection timed out"

when I try to access our sites deployed on our EC2 instance , I received the same error , "The connection has timed out The server at ec2----* is taking too long to respond"

there is no problem in network connection from our side as we are able to access other web site and services smoothly...

Can anyone plz help me or give me any suggestion regarding I can can't even able to access hosted site without this

Regards, Naveen

share|improve this question
Reboot an EC2 instance? – alvosu Jan 31 '11 at 11:29

Looks like your EC2 instance may have crashed? If you've touched nothing at all and you can't access it now it could be a possibility.

Try to check the console messages from the instance from your AWS control panel.

Also make sure that the security group the instance belongs to have all the right configuration to let you access the machine, if you've changed the security group that could make your instance unreachable from outside.

share|improve this answer
Thanks for replay ,I checked the security details as below.I thing there is no security issues.Please guide me If any thing I can do. All icmp -1 -1 -- Remove - udp 161 162 -- Remove SSH tcp 22 22 -- Remove HTTPS tcp 443 443 -- Remove HTTP tcp 80 80 -- Remove – naveen Jan 31 '11 at 12:24
Yeah looks like your security group is fine, so I assume that the instance has crashed (sad, but it happens), have a look at the Console messages from the instance (you can do so in the AWS panel) and check what it says – lynxman Jan 31 '11 at 12:30
Hi I have pasted the console log in the below url Please can you look into that and tell me what problem I am facing and how can I resolve this. sorry ,because I am new to the amazon ec2 thanks in advance – naveen Jan 31 '11 at 12:46
Don't see any issues in the console log either, try rebooting the instance, also try to contact Amazon to ask if the hardware under the instance have been affected by something, sometimes they kill instances on the spot if the hardware fails – lynxman Jan 31 '11 at 12:53
Although I must say if they do that they warn you in advance with a nice email :) – lynxman Jan 31 '11 at 12:56

The security group "Default" is damaged on AWS, it´s necessary to remove all inbound rules and recreate. As the example below:

  • Create a new rule: All TCP, source, click "add Rule" and then "Apply Rule Changes"

However, your server will be at security risk, because all TCP ports are open.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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