title: installing Net/SSH/Perl.pm
body: <p>I am fairly new to scripting with perl. I am trying to ssh into a server and perform some commands. I have to provide a username and password.</p>
  
  <p>When trying to run the script that i have so far (code listed below). I get the following error.</p>
  
  <p>I am assuming this means that i need to install/make Net/SSH/Perl.pm, however, when i follow the instructions and tutorials i have found online, none have worked.</p>
  
  <p>Can someone please assist me. I have tried <code>CPAN</code> and <code>ppm</code>, <code>CPAN</code> says it cannot find <code>net::ssh::perl</code> or other variations of that string. And <code>ppm</code> will not even run, i do not see it in my perl directory. Any help is greatly appreciated!</p>
  
  <hr>
  
  <pre><code>// The code
  #!/usr/bin/perl
  use Net::SSH::Perl;
  
  $uName = "username";
  $pWord = "password";
  
  $unitIp = $ARGV[0];
  
  my $ssh = Net::SSH::Perl-&gt;new($unitIp, 35903);
  $ssh-&gt;login($uName, $pWord);
  my $out = $ssh-&gt;cmd("java -version");
  print $out;
  </code></pre>
  
  <hr>
  
  <pre><code>// the error that is returned
  Can't locate Net/SSH/Perl.pm in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at needsAName.pl line 31.
  BEGIN failed--compilation aborted at needsAName.pl line 31.
  </code></pre>