On the main CPAN page http://search.cpan.org/~schwigon/Net-SSH-Perl/lib/Net/SSH/Perl.pm it says, and I quote "The deprecated hmac-sha1 or hmac-md5 algorithms are available but not enabled by default."
Then It ends there. It does not say anything about how to enable sha1 or md5... I've been at this for hours trying to get it to use md5. I cannot use another SSH mac.
The only thing I've found was Net::SSH::Perl::Mac, which just says it is implemented with Digest::HMAC_MD5, which just says 'This module provide HMAC-MD5 hashing.'
I'm completely lost and very frustrated.


EDIT: I found it finally. Example is as follows Net::SSH::Perl->new($serverHostname, debug => 1, options => ['MACs +hmac-sha1']) I was able to find this via the github page https://github.com/lkinley/Net-SSH-Perl found as the vague language "One can enable via the "MACs" option. For example: 'MACs +hmac-sha1'".
I pray for those that have to also walk this path. Good luck.


In reply to HMAC_MD5 with Net::SSH::Perl by UpTide

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.