Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Connecting using Net-OpenSSH with public key instead of passwordby Lotus1 (Vicar) |
on May 31, 2016 at 22:19 UTC ( [id://1164648]=note: print w/replies, xml ) | Need Help?? |
Hi NewMonk2Perl The first thing I noticed is that you aren't calling new() the way the documentation shows. The host is either a string or a variable but not part of the hash. The options hash is the second parameter.
If fixing that doesn't solve your problems there is a debugging section at the end of Net::OpenSSH. For instance, in order to activate all the debugging flags, you can use:$Net::OpenSSH::debug = ~0; Update: Try changing just this one line in your program: my $ssh = Net::OpenSSH->new( $host, user=>$user,
In Section
Seekers of Perl Wisdom
|
|