I could not tell from the docs if Net::SSH2 is thread-safe or not. It would be nice to have this kind of info in the META.yml file ;)

Now regarding Net::SSH::Perl I would not consider it antiquated, and it has its use: you can look at it almost as a pure-perl implementation (modulo a maths lib that someday could be part of core perl). It is true that the maintainer himself says that the module is showing signs of age and is hard to maintain but mostly IMHO because implementations of SSH1 and SSH2 are shipped in the same module (and even use different libs!).

Another aspect is that building libssh2 is not so easy, and till recently there was no package on cygwin for it. Checking now I can see one libssh2; will try later to build Net::SSH2.

I am quite fond of pssh actually; it is easy to hack: for example if you want to do local env management and run a few remote commands automatically before opening up a remote interactive shell.

cheers --stephan

In reply to Re^2: Problem with threads in Net::SSH:Perl by sgt
in thread Problem with threads in Net::SSH:Perl by Anonymous Monk

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.