title: Python automatic login
body: <p>i use this code to communicate by ssh.</p>
  
  <p>but my problem is that i have to write in the ssh password. i know i could use <code>plink</code> and it can handle password, but i would like to solve it this way.
  If i write the password the "ls", "uname" etc. commands runs without problem.</p>
  
  <p>is it possible to automatically fill the password without user interaction?</p>
  
  <pre><code>import subprocess
  import sys
  HOST="127.0.0.1"
  ssh = subprocess.Popen(["ssh",
                          "%s" % HOST],
                          stdin=subprocess.PIPE,
                          stdout=subprocess.PIPE,
                          stderr=subprocess.PIPE,
                          universal_newlines=True,
                          bufsize=0)
  # send ssh commands to stdin
  ssh.stdin.write("ls .\n")
  ssh.stdin.write("uname -a\n")
  ssh.stdin.write("uptime\n")
  ssh.stdin.close()
  # fetch output
  for line in ssh.stdout:
      print(line),
  </code></pre>