==============================
use Net::SSH::Perl; $conn=Net::SSH::Perl->new("10.94.195.78"); $conn->login("root","gone2far"); print "Login is successful \n"; ($output,$errors,$exit)=$conn->cmd("ls -l"); print $output;
=========================================
C:\perl-program>perl connRemoteHost.pl Can't locate Math/Pari.pm in @INC (@INC contains: C:/Perl/site/lib C:/ +Perl/lib . ) at C:/Perl/lib/Net/SSH/Perl/Util/SSH2MP.pm line 6, <GEN0> line 1. BEGIN failed--compilation aborted at C:/Perl/lib/Net/SSH/Perl/Util/SSH +2MP.pm lin e 6, <GEN0> line 1. Compilation failed in require at C:/Perl/lib/Net/SSH/Perl/Util.pm line + 56, <GEN0 > line 1. BEGIN failed--compilation aborted at C:/Perl/lib/Net/SSH/Perl/Kex/DH1. +pm line 10 , <GEN0> line 1. Compilation failed in require at C:/Perl/lib/Net/SSH/Perl/Kex.pm line +6, <GEN0> line 1. BEGIN failed--compilation aborted at C:/Perl/lib/Net/SSH/Perl/Kex.pm l +ine 6, <GE N0> line 1. Compilation failed in require at C:/Perl/lib/Net/SSH/Perl/SSH2.pm line + 6, <GEN0> line 1. BEGIN failed--compilation aborted at C:/Perl/lib/Net/SSH/Perl/SSH2.pm +line 6, <G EN0> line 1. Compilation failed in require at C:/Perl/lib/Net/SSH/Perl.pm line 52, +<GEN0> lin e 1.
==============================================

Install this module in the system ==>Net::SSH::Perl but compilation is failing. Can you please help as not able to compile it?

I tried installing Net::SSH2 but did not help. See the error as given below,

C:\perl-program>perl connRemoteHost.pl Can't locate auto/Net/SSH2/autosplit.ix in @INC (@INC contains: C:/Per +l/site/lib C:/Perl/lib .) at C:/Perl/lib/AutoLoader.pm line 173. at C:/Perl/site/lib/Net/SSH2.pm line 9 Can't locate loadable object for module Net::SSH2 in @INC (@INC contai +ns: C:/Per l/site/lib C:/Perl/lib .) at connRemoteHost.pl line 1 Compilation failed in require at connRemoteHost.pl line 1. BEGIN failed--compilation aborted at connRemoteHost.pl line 1.

In reply to Issue in remote Host script in Net::SSH::Perl by saikat

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.