title: Perl ssh Password
body: <p>I am trying to use perl to SSH in to a machine and issue a few commands...</p>
  
  <pre><code>my $ssh = Net::SSH::Perl-&gt;new($host);
  $ssh-&gt;login($user,$pass);
  my($stdout, $sterr, $exit) = $ssh-&gt;cmd($cmd);
  print "$stdout \n"
  </code></pre>
  
  <p>This is the general idea, but I am still stuck at the prompt for the password. I have also attempted to use python, and also can not get past the prompt for password. Expect, on the other hand, handles the password just fine.  Does anyone have any idea what would cause this?</p>
  
  <p>Edit: additional info</p>
  
  <p>I am using putty to a linux machine and then ssh into numerous more linux machines.  Using the perl code above, the user name gets set correctly, but I end up having to manually entering the password each time. </p>