ashok.g has asked for the wisdom of the Perl Monks concerning the following question:
One of the scripts printed "In Progress...." but where as other script gave "-43LIBSSH2_ERROR_UNKNOWN(-43)Failed getting banner" error.sub SSH_Reference { #print "Starting SSH_REFERENCE......<br>"; ($rip, $rusr, $rpwd) = (shift, shift, shift); chomp($rip, $rusr, $rpwd); my $ssh2 = Net::SSH2->new(); $auth_fail{$rip}="Failed"; #return "Can not connect $rip " unless ($ssh2->connect($rip)); + ## or die "Can not Connect $rip "; #print "$ssh2---$rip----$rusr---$rpwd---<br>"; if ( ! ($ssh2->connect($rip)) ) ## or die "Can not Connect $r +ip "; { print qq{<font color="red"><b> Error: Cannot connect t +o $rip : SSH service Failed </b></font>},$ssh2->error; $eer = 1; return "$eer"; } print "In Progress....<br>"; exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: strange Net::SSH2 on Solaris10
by syphilis (Archbishop) on May 29, 2012 at 01:03 UTC | |
by ashok.g (Beadle) on May 29, 2012 at 23:27 UTC | |
by syphilis (Archbishop) on May 30, 2012 at 00:18 UTC | |
by ashok.g (Beadle) on May 30, 2012 at 16:57 UTC | |
|
Re: strange Net::SSH2 on Solaris10
by salva (Canon) on May 30, 2012 at 06:54 UTC | |
by ashok.g (Beadle) on May 30, 2012 at 17:05 UTC | |
by salva (Canon) on May 30, 2012 at 18:21 UTC | |
by ashok.g (Beadle) on May 30, 2012 at 21:04 UTC |