when i run this script it gives error like (Can't locate Net/SSH/Perl.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at netssh.pl line 5.
BEGIN failed--compilation aborted at netssh.pl line 5.) this.. please help me out to solve this problem...n i have installed Net ssh also ...thanks in advance..
my $host = 'localhost';
my $pass = 'yourpassword';
my $user = 'yourusername';
my $cmd = 'pwd';
my $ssh = Net::SSH::Perl->new($host, protocol => '1,2', debug => 1);
my($stdout, $stderr, $exit) = $ssh->cmd($cmd);
print $stdout, "\n";