Hello. First question here.

I am trying to get Perl to SSH to a Unix machine. The possible origin machines are Unix, Linux and Windows XP. The problem is, it is all behind a very restrictive firewall (no FTP, authenticating HTTP that PPM cannot get through even I set up HTTP_proxy*).

I have Perl installed in the three machines, and all three have SSH clients (PuTTY in Windows). But I cannot get Open2($r, $w, "ssh destination") to work (I cannot do the SSH public key authentication, I cannot meddle with the destination machine) and I cannot use CPAN nor PPM to connect to a repository.

So I need help on how to do one of the following:

  1. Get Open2 to work with password authentication.
  2. Set a private repository and choose which files to put and where, to get CPAN / PPM to install Net::SSH, and get it to work with password authentication.
  3. Install the Net::SSH and all dependencies manually, and get it to work with password authentication.
  4. Something else you guys and girls think about.

Thanks in advance.


In reply to Get Perl packages by Mencial

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.