in reply to Re^10: Net::SSH2 not base64 encoded
in thread Net::SSH2 not base64 encoded

Looking at the source code, it wants to load Term::ReadKey or fails. So maybe you don't have that module installed or don't have a terminal connected when the script runs?

If you want to accept the key anyway, use LIBSSH2_HOSTKEY_POLICY_TOFU as hostkey policy.

Replies are listed 'Best First'.
Re^12: Net::SSH2 not base64 encoded
by averlon (Sexton) on Dec 13, 2024 at 09:54 UTC

    Term::ReadKey is up to date. (2.38)

    Regards Kallewirsch
Re^12: Net::SSH2 not base64 encoded
by averlon (Sexton) on Dec 13, 2024 at 14:48 UTC

    I have changed to Net::OpenSSH

    Works without problems!

    Thanks for your help!

    Regards Kallewirsch