title: EC2 Connection Timed out: ec2 ERROR: asyncio completed with error: 10061,
body: <p>I have ec2 instance with public subnet and vpc associate with it.and igw attach to the vpc</p>
  
  <p>I did enable auto assign ip</p>
  
  <p>Also I have security group with following inbound rules</p>
  
  <p><a href="https://i.stack.imgur.com/CDWw6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CDWw6.png" alt="enter image description here"></a></p>
  
  <p>the route table look like</p>
  
  <p><a href="https://i.stack.imgur.com/Qsbg0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qsbg0.png" alt="enter image description here"></a></p>
  
  <pre><code>OpenSSH_8.1p1, OpenSSL 1.1.1d  10 Sep 2019
  debug1: Reading configuration data /etc/ssh/ssh_config
  debug2: resolving "ec2-XX-XXX.ap-southeast-2.compute.amazonaws.com" port 22
  debug2: ssh_connect_direct
  debug1: Connecting to ec2-XX-XXX.ap-southeast-2.compute.amazonaws.com [XX.XX] port 22.
  debug1: connect to address ec2-XX-XXX port 22: Connection timed out
  ssh: connect to host ec2-XX-XXX.ap-southeast-2.compute.amazonaws.com port 22: Connection timed out
  </code></pre>