I'm attempting to automate and centralize some system administration and deployment tasks, and I've hacked together an ssh wrapper module that works for my initial needs, essentially:

$cmd->{output} = qx($cmd_str); if ( defined $cmd->{output} ) { $cmd->{child_ret_code} = $?; chomp $cmd->{output}; } else { ($cmd->{sys_ret_code}, $cmd->{sys_ret_msg}) = ($!, '|'.$!.'|'); }
but I'm assuming this falls under the column heading:

Problems that have been Solved Before

And sure enough I found Net::SSH::Perl. However ...

The most recent node I found in the monastery referencing Net::SSH::Perl is from 2008.

And while the current version of Net::SSH::Perl on CPAN is 2.01 from April of 2016, the most recent rpm I can find is 1.42, which sent me down a rabbit hole of dependencies.

My question then is in two parts, first, is there a better and/or more current module that provides the functionality of Net::SSH::Perl, and if not, is there a cleaner, easier way to get it installed on a Centos 7 instance, which requires an rpm?

Thanks,
cbeckley


In reply to Is Net::SSH::Perl still supported? Can I install it on Centos 7? by cbeckley

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.