title: ssh using python(without paramiko and fabric)
body: <p>I have a requirement to write a python script to do a ssh login from one server to the other. Unfortunately these servers do not have any internet connection and i am not able to download packages. 
  I have written the below code using python sub process but once the ssh command is executed stdin.write dose not input the password.
  I have tried p.communicate also but to no avail.
  Please help me on this script to ssh without using paramiko or fabric.</p>
  
  <pre><code>cmd = "ssh root@17.10.14.243"
  p = subprocess.Popen(cmd, stdin = subprocess.PIPE, stdout =  subprocess.PIPE, stderr =  subprocess.PIPE, bufsize = 1,shell = True)
  p.stdin.write("Pass")
  </code></pre>