in reply to passphrase on a RSA key with net::ssh::perl

You should be able to provide the password something like this:
#!/usr/bin/perl use strict; use warnings; use Net::SSH::Perl; my $host = 'localhost'; my $user = 'user'; my @keyfile = ("/home/User/.ssh/id_rsa"); my $ssh = Net::SSH::Perl->new( $host, debug => 1, identity_files => \@keyfile );
Double check @keyfile as it might be different.

Replies are listed 'Best First'.
Re^2: passphrase on a RSA key with net::ssh::perl
by manb (Novice) on Feb 06, 2011 at 13:37 UTC
    Hello Khen, Thanks for the prompt response. The above would work assuming the key ("/home/User/.ssh/id_rsa") did not have a password. i.e. if you entered a null password when ssh-keygen prompted for one. However my keys have explicit passwords set. Although the example above tells net::ssh::perl to use a key for authentication, it is still not automatically providing the password.
      Hi, I am stuck in same problem. Do you got any solution. Please do share.