in reply to Re: error_know_host error
in thread error_know_host error

Should Net::SSH2 have defined that? I got: Bareword "LIBSSH2_HOSTKEY_POLICY_TOFU" not allowed while "strict subs" in use

Replies are listed 'Best First'.
Re^3: error_know_host error
by pryrt (Abbot) on Oct 16, 2023 at 16:59 UTC
    it's not properly documented, but based on Net/SSH2.pm source, it requires Net/SSH2/Constants.pm, which sets up export tags, including :policy which includes LIBSSH2_HOSTKEY_POLICY_TOFU -- so I think that use Net::SSH2 qw/:policy/; should work for you (untested).