The Net:SSH:Perl:Agent module doesn't seem to work for me. I get the following error, even with the included sexample code.
Can't call method "identity_iterator" on an undefined value at .\sshtest.pl line 5.
This is the code I used:
#!/usr/bin/perl -w
use Net::SSH::Perl;
use Net::SSH::Perl::Agent;
my $agent = Net::SSH::Perl::Agent->new(1);
my $iter = $agent->identity_iterator;
while (my($key, $comment) = $iter->()) {
print $key;
}
I think this means, that $agent is not defined, so Net::SSH::Perl::Agent->new didn't work. My ssh agent works fine in my shell directly with the ssh command tho.
Please Let me know what I might be doing wrong.
Thanks, Ninto! |