title: Running EC2 instance suddenly refuses SSH connection
body: <p>I've set up the EC2 instance couple days ago and even last night I was able to SSH to it with no problems. Today morning, I can't ssh to it. Port 22 is already open in the security group and I haven't changed anything since last night.</p>
  
  <p>Error:</p>
  
  <pre><code>ssh: connect to host [ip address] port 22: Connection refused
  </code></pre>
  
  <p>I had similar issue recently and i couldn't figure out why it was happening, so I had to create a new instance, set it up again, and connect and configure all EBS storages to the new one. Took me couple hours... and now it's happening again. In the previous one, I've installed <code>denyhost</code>, which might have blocked me, but in the current one, there are only apache2, and mysql running.</p>
  
  <p>The current instance has been up for 16 hours now, so I don't think it's because it didn't finish booting... Also, port 22 is open to all sources (0.0.0.0/0) and is using tcp protocol. </p>
  
  <p>Any ideas?</p>
  
  <p>Thanks.</p>