Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: strange Net::SSH2 on Solaris10

by salva (Monsignor)
on May 30, 2012 at 06:54 UTC ( #973196=note: print w/ replies, xml ) Need Help??


in reply to strange Net::SSH2 on Solaris10

Are both scripts connecting to the same host as the same user?

In case the response is yes, then the problem may be caused by some incompatibility between libssh2 and the remote SSH server software.

If the response is no, then you are looking at the wrong place. There should be some difference between the two scripts that causes them to perform differently.

From your previous posts, I see that you are trying to mix SSH and threads, it is possible that Net::SSH2 amd libssh2 are not thread safe.

You may also like to check Net::OpenSSH::Compat::SSH2, an adaptor module for Net::OpenSSH providing the API of Net::SSH2. OpenSSH client is quite more mature than libssh2, and all SSH server software vendors ensure that their products interopetate with it.


Comment on Re: strange Net::SSH2 on Solaris10
Re^2: strange Net::SSH2 on Solaris10
by ashok.g (Beadle) on May 30, 2012 at 17:05 UTC
    Hi Salva,

    Thanks for your reply.

    Are both scripts connecting to the same host as the same user?

    Yes. That's correct.

    then the problem may be caused by some incompatibility between libssh2 and the remote SSH server software.

    This sub routine works perfectly in Perl 5.8.8 (may be that is ActivePerl) but now it is Perl 5.8.9. Do you think that this might be the cause?

    Thanks,
    Ashok.
      So, both scripts fail under 5.8.9? or are you running one under 5.8.8 and the other under 5.8.9?

      It is very unlikely that the changes between 5.8.8 and 5.8.9 could affect Net::SSH2, but there may be other changes as versions of the module, or the library or of any of its dependencies.

      Who knows! you have not given enough detail.

        I have only 5.8.9 on this new server and only one script is working here. Previously, we have perl 5.8.8 and no issues with that.

        Thanks,
        Ashok.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://973196]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2014-07-14 05:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (255 votes), past polls