in reply to Re: Re: Net::SSH::Perl problems
in thread Net::SSH::Perl problems

the documentation says:
* identity_files ... If you don't provide this, RSA authentication defaults to using $ENV{HOME}/.ssh/identity, and DSA authentication defaults to $ENV{HOME}/.ssh/id_dsa.

So if your identity is in id_rsa.pub maybe you should let the object know that during instantiation:

my $ssh = Net::SSH::Perl->new( $host, identity_files => ["$ENV{HOME}/.ssh/id_rsa.pub"], );

Replies are listed 'Best First'.
Re: Re: Re: Re: Net::SSH::Perl problems
by Crayola (Initiate) on May 28, 2003 at 15:30 UTC
    That helped but didnt solve the problem.. now it is trying to use public key auth but it fails cause its in batch mode and it thinks it needs a passphrase. I put it in interactive mode but it now demands a passphrase (which the key doesnt have) and fails when I just hit enter. I need it to use batch mode and public key.. Thanks for your help.. Crayola