Khen
if we use password to authenticate , will it use the public keys then..(just wanted to know)
iused the following piece of code , it seems to connect and sending the "ls" command, but i am not getting any reply back
use strict;
use warnings;
use Net::SSH::Perl;
my $host = "217.154.215.76";
my $user = "etrade";
my $cmd = "ls rolling*";
my $ssh = Net::SSH::Perl->new($host, debug => 1, identity_files => ["/
+etrade/home/ibia_ir/.ssh/id_rsa"], protocol=>'2,1');
$ssh->login($user);
my($stdout, $stderr, $exit) = $ssh->cmd($cmd);
print "$stdout";
print "$stderr";
print "$exit";
|