Thank you so much let me try On Thu, Mar 12, 2015 at 10:23 PM, Zach Tuttle <tuttle_z...@icloud.com> wrote:
> You need to install the ssh module on windows > > Sent from my iPhone > > On Mar 12, 2015, at 9:25 AM, 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 > >