in reply to Re^2: strange Net::SSH2 on Solaris10
in thread strange Net::SSH2 on Solaris10

no errors here

Good - no problems with that version of the libssh2 library. Are you certain that your failing script uses the very same libssh2 library ?

Next thing to do would be to determine which line of code in your script is producing the error. I don't see anything in the subroutine you posted that should cause that error, so it probably happens before that sub is called.

Cheers,
Rob

Replies are listed 'Best First'.
Re^4: strange Net::SSH2 on Solaris10
by ashok.g (Beadle) on May 30, 2012 at 16:57 UTC
    Rob,

    Are you certain that your failing script uses the very same libssh2 library ?

    I am using CGI pages under same environment. So I believe I am using same libssh2 library.

    I don't see anything in the subroutine you posted that should cause that error, so it probably happens before that sub is called.
    $ssh2->connect($rip)
    This is the code that is failing. Same parameters, same environment, same script. Not sure how to proceed on this and why it is throwing -43LIBSSH2_ERROR_UNKNOWN(-43)Failed getting banner error?

    Thanks,
    Ashok.