There are several ways Perl can connect with a SFTP server as, for instance, running the external binary directly, using a module that does so or using some modules implementing the SFTP and/or SSH protocols.

The easiest way to know what it is doing is to look at the program source code... if you are unable to do so, just grep for "sftp" over it and post here the output (though, you may like to remove sensible information first).

Another option is to run the program with some utility as truss, to see what is going on at the OS level. You will be able to see if it is running some external program and which Perl modules it is using.

Update: In any case, have you just tried including the directory containing the newer SFTP/SSH binaries in $PATH before calling the Perl program?


In reply to Re: Perl & SFTP ciphers by salva
in thread Perl & SFTP ciphers by annamary

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.