GaijinPunch has asked for the wisdom of the Perl Monks concerning the following question:
the main problem i get is this output.my @id_files = qw(/home/me/.ssh/id_rsa.pub); my $ssh = Net::SSH::Perl->new( 'host', debug => 1, protocol => 2, iden +tity_files => \@id_files ); $ssh->login() my ( $o, $e, $ex ) = $ssh->cmd( 'uptime' );
I can assure you that the id_rsa.pub file is there. If I don't load @id_files implicitly, it seems to default to dsa keys, which will fail for almost all the machines I'm trying to talk to.host: Trying empty user-authentication request. host: Authentication methods that can continue: publickey,keyboard-int +eractive. host: Next method to try is publickey. host: Trying pubkey authentication with key file '/home/me/.ssh/id_rsa +.pub' host: Will not query passphrase for '/home/me/.ssh/id_rsa.pub' in batc +h mode. Loading private key failed.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::SSH::Perl (RSA)
by zentara (Cardinal) on Mar 02, 2007 at 13:56 UTC | |
by GaijinPunch (Pilgrim) on Mar 03, 2007 at 00:19 UTC |