I'm trying to run this simple script:
my $server = "184.108.40.206";
my $ssh2 = Net::SSH2->new;
die "can't connect" unless $ssh2->connect($server);
die "can't authenticate"
unless $ssh2->auth(username => 'un', password => 'pw');
and getting this error:
Net::SSH2::auth_password: callback must be CODE ref at C:/Perl/site/li
+b/Net/SSH2.pm line 295.
I've verified the username and password as well as the server ip address. The error makes no sense to me. Could any of you wise Perl Monks enlighten me?