karayan has asked for the wisdom of the Perl Monks concerning the following question:
This fails all the time. I have used the same key successfully in Putty to connect to the server. The key files are on the same folder this script is. Also how can I get more verbose debug messages? Thanks in advance.use Net::SSH2; my $ssh2 = Net::SSH2->new(); $ssh2->debug(1); $ssh2->connect('hostname') or die; if ($ssh2->auth_publickey('username', 'openssh.public', 'openssh.priva +te.ppk')) { print "Connected"; } else { print "failed"; }
|
---|