title: can't ssh:unable to establish master SSH connection: bad password or master process exited unexpectedly
body: <p>I have problem with perl modules, i 'm trying to connect to the remote server using the OpenSSH module from CPAN and i have given the username and password correctly but when i run my CGI from browser i see the following error message "</p>
  
  <blockquote>
    <p>can't ssh:unable to establish master SSH connection: bad password or
    master process exited unexpectedly</p>
  </blockquote>
  
  <p>in need of immediate reply's and awaiting,
  Thanks in Advance.</p>
  
  <p>Here is my code</p>
  
  <pre><code>#!/usr/bin/perl -w
  use CGI;
  use Data::Dumper;
  use strict;
  use CGI::Carp qw(fatalsToBrowser);
  use Net::OpenSSH;
  
  
  my $query = CGI-&gt;new();
  #my $mach_name=$query-&gt;param('mach_name');
  my $mach_name= '****.cce.***.com';
  my $user='root';
  my $passwd='*******';
  my $ssh = Net::OpenSSH-&gt;new("$mach_name",user =&gt; "$user" , passwd =&gt; "$passwd
  ", master_opts =&gt; [-o =&gt; "strictHostKeyChecking=no"]);
  $ssh-&gt;error and die "can't ssh:" . $ssh-&gt;error;
  my $mem_info =$ssh-&gt;capture("ioscan -m lun");
  print "$mem_info";
  print "Content-type: text/html\n\n";
  print "&lt;html&gt;&lt;head&gt;&lt;title&gt;test page&lt;/title&gt;&lt;/head&gt;\n";
  print "&lt;body&gt;&lt;p&gt;Dicovering Machine Please wait....&lt;/p&gt;\n";
  print "&lt;p&gt;$mach_name&lt;/p&gt;";
  print "&lt;p&gt;&lt;b&gt;Swap Memory :$mem_info &lt;/b&gt; &lt;/p&gt;";
  print "&lt;/body&gt;&lt;/html&gt;";
  </code></pre>
  
  <p>The same program if i run through the command line it is getting the o/p but through the browser i'm seeing the above error i have given the passwd and username correctly</p>