PrimeLord has asked for the wisdom of the Perl Monks concerning the following question:
I am getting an error message that says... Can't use string ("/usr/home/username/.ssh/identit") as an ARRAY ref while "strict refs" in use at /usr/local/lib/perl5/site_perl/5.005/Net/SSH/Perl/Auth/RSA.pm line 36, <GEN0> chunk 1. I have gone through the documentation several times trying to figure out what I am doing wrong, but I guess I am just not getting it. Can anyone show me where I am going wrong here? Also is there anyway to get the RSA keys to work with keys that have a pass phrase on them? Thanks for the help. Rickuse strict; use Net::SSH::Perl; my @key = ('identity_files', '/usr/home/username/.ssh/identity'); my $ssh = Net::SSH::Perl->new("host", @key); my $auth = Net::SSH::Perl::Auth->new('RSA', $ssh); print "Valid auth" if $auth->authenticate; my ($out, $err, $exit) = $ssh->cmd("uname -a"); print "$out\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::SSH::Perl Question
by projekt21 (Friar) on Jan 15, 2002 at 00:02 UTC | |
|
Re: Net::SSH::Perl Question
by dmmiller2k (Chaplain) on Jan 15, 2002 at 00:12 UTC | |
|
Re: Net::SSH::Perl Question
by runrig (Abbot) on Jan 15, 2002 at 01:24 UTC | |
|
Re: Net::SSH::Perl Question
by Anonymous Monk on Nov 06, 2014 at 07:38 UTC |