now getting following error: Key class 'Net::SSH::Perl::Key::RSA' is unsupported: Cannot find current script './igor_tar.pl' at /home/y/lib/perl5/5.8/FindBin.pm line 188 BEGIN failed--compilation aborted at /home/y/lib/perl5/5.8/FindBin.pm line 188.
here is the latest code: my $host = "gwbl7001.blue.ygrid.yahoo.com"; my $user = "irfanjs"; my $cmd = "ls"; my $msg; my %params; $params{'identity_files'} = '/home/irfanjs/.ssh/identity'; $params{'protocol'} = '2,1'; foreach (sort keys %params) { print "$_ : $params{$_}\n"; } my $ssh = Net::SSH::Perl->new($host,%params); $ssh->login($user); $ssh->cmd($cmd); any issue with protocol? --irfan ________________________________ From: Alexey Mishustin <shum...@shumkar.ru> To: beginners@perl.org Sent: Tue, October 12, 2010 2:25:52 PM Subject: Re: perl net::ssh module Note: Forwarded message is attached. Junk Score: 1 out of 10 (below your Auto Allow threshold) | Approve sender | Block sender | Block domain |