title: Insert password in ssh using python script
body: <p>I need to run a Python script which will get the password from the user and login into the specific box using SSH.</p>
  
  <pre><code>password = getpass.getpass('password:')
  ...
  ...
  command='ssh' + ' ' + "IPname"
  
  p = subprocess.Popen(command,shell=True,stdout=PIPE).communicate(password)[0]
  </code></pre>
  
  <p>But the above script is not working and still it is looking for password. </p>