G'day BernieC,
I'm not a user of Net::SSH2, but looking at its documentation and its
source
it would seem LIBSSH2_HOSTKEY_POLICY_TOFU should be a constant: try removing the quotes.
If that doesn't work, providing additional information may help others to troubleshoot your problem.
-
Does your code have a use VERSION?
If so, what is it?
-
With no use VERSION or VERSION < v5.12, you should include strict and warnings;
with VERSION >= v5.12 and < v5.36, you should include warnings
(you automatically get strict);
with VERSION >= v5.36, you automatically get strict and warnings.
What does your code have?
-
What version of Perl relates to "back in the day"?
-
What was the previous version of Net::SSH2 you used?
What is the current version?
-
Net::SSH2 is not a core module. Did you install it with your new v5.38.0?
-
What version of libssh2 do you have installed?
See also: "Net::SSH2: Error handling";
in particular, its reference to check_hostkey.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.