in reply to Unable to determine known_hosts location (-16 LIBSSH2_ERROR_FILE)

The exception is thrown here: https://github.com/rkitover/net-ssh2/blob/master/lib/Net/SSH2.pm#L377C13-L377C13. It seems unable to find the home directory of the user, which happens in _local_home: https://github.com/rkitover/net-ssh2/blob/master/lib/Net/SSH2.pm#L344C5-L344C5

Try setting the HOME environment variable. What does

print +(getpwuid($<))[7];
return on the system?

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^2: Unable to determine known_hosts location (-16 LIBSSH2_ERROR_FILE)
by Discipulus (Canon) on Oct 20, 2023 at 06:52 UTC
    Hello choroba,

    most routines of this family are not implemented in win32 perl

    L*

    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.