title: Python SSH using Popen
body: <p>How do I <code>ssh</code> using <code>Popen</code> by answering yes by default when faced with this?</p>
  
  <pre><code>The authenticity of host '`XXXXX`' can't be established.
  ECDSA key fingerprint is SHA256:LA2RqbdzD8Uxgi36KWOM12giS9T+ceOQYhYjVKReMks.
  Are you sure you want to continue connecting (yes/no)?
  </code></pre>
  
  <p>this is what I'm trying</p>
  
  <pre><code>for IP in ['10.32.253.250']:
      remoteCall = subprocess.Popen(["ssh", "co_user@"+IP, "sudo svstat /etc/sv/nagios_CheckDisk_Alertz_daemon",], stdout=subprocess.PIPE, stderr=subprocess.PIPE);
      Response, err = remoteCall.communicate()
      if(re.search("authenticity of host", Response)):
          stdin.write('yes')
      print IP + "  " +Response
  </code></pre>