title: stuck with status check of amazon ec2 instance
body: <p>I am using Python to launch an <code>ec2 instance</code>, after I get <code>"running"</code> state of my instance, I am trying to <code>SCP</code> a shell script and run it via ssh.</p>
  
  <p>I am getting the following error</p>
  
  <blockquote>
    <p>"ssh: connect to host ec2-xx-xxx-xxx-xxx.compute-1.amazonaws.com port 22: Connection refused"</p>
  </blockquote>
  
  <p>When I check in the console, the Status check is <code>"Initializing"</code>, once It changes <code>"2/2 checks passed"</code>, I am able to <code>ssh</code> or run any script.</p>
  
  <p>Is there any way I can get the "status check" via <code>python boto API</code>?</p>
  
  <p>I am using Python 2.7.5+,
  boto 2.19.0</p>
  
  <p>Thanks in advance.</p>