title: SSH connection to ec2 Connection timed out
body: <p>I cannot SSH in to my ec2 instance from ubuntu 12.11.</p>
  
  <p>I tried all the methods of ssh by giving key as credentials </p>
  
  <p>I used </p>
  
  <pre><code>ssh -v -i ~/.ec2/pes.pem ec2-user@ec2-54-209-148-122.compute-1.amazonaws.com
  </code></pre>
  
  <p>and I am getting the output as </p>
  
  <pre><code>OpenSSH_6.1p1 Debian-4, OpenSSL 1.0.1c 10 May 2012
  debug1: Reading configuration data /etc/ssh/ssh_config
  debug1: /etc/ssh/ssh_config line 19: Applying options for *
  debug1: Connecting to ec2-54-209-148-122.compute-1.amazonaws.com [54.209.148.122] port 22.
  
  debug1: connect to address 54.209.148.122 port 22: Connection timed out
  ssh: connect to host ec2-54-209-148-122.compute-1.amazonaws.com port 22: Connection timed out
  </code></pre>
  
  <p>Thank u, </p>