Hi Monks,

I have installed Net::SSH2 v0.44 on Perl v5.8.9 built for sun4-solaris-thread-multi using the link

Now I have two different scripts which will finally call same sub routine:
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;
One of the scripts printed "In Progress...." but where as other script gave "-43LIBSSH2_ERROR_UNKNOWN(-43)Failed getting banner" error.
,br> Why there is error throwing for other script when running on same machine by passing same parameters? Can you please help me on this?

Thanks,
Ashok.

In reply to strange Net::SSH2 on Solaris10 by ashok.g

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.