title: port 22: Connection timed out
body: <p>I have used my EC2 for over 7 months. Suddenly decided to not work anymore. I cannot ssh into it although I used the exact same ssh script as I used before.</p>
  
  <blockquote>
    <p>ssh: connect to host XXXXXX.amazonaws.com port 22: Connection timed out</p>
  </blockquote>
  
  <p>I restarted the instance.
  The status checks says ok.
  <a href="https://i.stack.imgur.com/bgAqW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bgAqW.png" alt="enter image description here"></a></p>
  
  <p>I also verified inbound security group on port 22:</p>
  
  <p><a href="https://i.stack.imgur.com/RAJUq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RAJUq.png" alt=""></a></p>