ssh clients use private keys, while the remote machine uses the publics key, it looks like you're specifying a public key for your identity file.
That makes sense, and was something I finally figured out, but didn't seem to help. Rthe file /home/user/.ssh2/host is the DSA private key (the subject line I did above is wrong, this is DSA auth, not RSA). Still doesn't help. debug reports that the private key fails to load. I'll get on the strace thing...that's a good idea.
Here's the script as it stands...
#!/usr/bin/perl
use Net::SSH::Perl;
$host = 'host'; $user = 'user'; $cmd = 'uname -a';
my @ids = ( "/home/user/.ssh2/host");
my %params = (
identity_files => [EMAIL PROTECTED],
debug => 1
);my $ssh = Net::SSH::Perl->new($host, %params);
$ssh->login($user); my($stdout, $stderr, $exit) = $ssh->cmd($cmd);
print $stdout;
_______________________________________________ Boston-pm mailing list [EMAIL PROTECTED] http://mail.pm.org/mailman/listinfo/boston-pm

