Hello all, When using strawberry perl on a 64 bit machine I could not get Net::SSH::Perl to install due to the GP/PARI dependency.
I would suggest taking a look at the Net::SSH2 package which according to Net::SFTP::Foreign documentation is a wrapper around libssh2 and aims to replace Net::SSH::Perl. I did successfully get Net::SSH2 installed on strawberry x64. For example code checkout the Net::SSH2 POD. Let us know if that works for you. Good luck, --dave On Mar 12, 2015 12:27 PM, "Frank Vino" <vinofra...@gmail.com> wrote: > Hi, > > Here is my code. In Cpan i have installed ssh in linux and windows still > i am getting the error, Can anybody provide for opening a ssh by using perl? > > #!/usr/bin/perl > > use Net::SSH::Perl; > my $ssh = Net::SSH::Perl->new('10.10.10.10'); > $ssh->login(admin, password); > my($stdout, $stderr, $exit) = $ssh->cmd($cmd); > > Output: > > Can't locate Net/SSH/Perl.pm in @INC (you may need to install the > Net::SSH::Perl > module) (@INC contains: C:/Perl64/site/lib C:/Perl64/lib .) at ssh.pl > line 3. > BEGIN failed--compilation aborted at ssh.pl line 3. > > -Frank >