title: Python script for SSH through PuTTY
body: <p>I am able to give the following command in the command-line</p>
  
  <pre class="lang-none prettyprint-override"><code>C:\&gt;cd "C:\Program Files\ExtraPuTTY\Bin"
  
  C:\Program Files\ExtraPuTTY\Bin&gt;putty.exe -ssh root@172.20.0.102 22
  </code></pre>
  
  <p>This helps me open the SSH session through PuTTY.</p>
  
  <p>Whereas I am not able to reproduce them in the Python script. </p>
  
  <pre><code>cwd="C://Program Files//ExtraPuTTY//Bin"
  COMMAND="ls"
  ssh = Popen(['putty.exe -ssh','%s'%HOST, COMMAND,cwd],shell=True,stdout=f,stderr=f)
  </code></pre>
  
  <p>The error that I see is </p>
  
  <blockquote>
    <p>"putty.exe -ssh"' is not recognized as an internal or external command,operable program or batch file</p>
  </blockquote>