elfpen has asked for the wisdom of the Perl Monks concerning the following question:

Hello.

In moving some scripts between some HP-UX platforms, old 11.23 and new 11.31, I am once again facing SFTP problems.

I have a handful of scripts which need to do a simple file transfer using SFTP, password mode.

As I understand it, my options are to try to compile NET:SFTP with many and difficult dependencies. A multi-day world of pain for these machines without internet access. (Am I overstating it?)

Or, I thought I had found relief by using Net::SFTP::Foreign! But, it uses pseudo terminals and our security scanning package (CIS-CAT) frowns on pseudo terminals.

Is there a third way?

===================

Nevermind!

The HP-UX ptydaemon is not pseudo terminals and the IO::Pty package was easy to install.

If a little abasement here would make all my troubles go away, I'm glad to do it.

Replies are listed 'Best First'.
Re: SFTP suffering
by davido (Cardinal) on Apr 03, 2016 at 22:47 UTC

    If Net::SFTP really is the right tool for the job, maybe you could look at mitigating the pain of installing it in an environment lacking Internet access. A solution such as CPAN::Mini and/or Carton could take a little time to learn and set up initially, but then would work for other module needs in the future.


    Dave

Re: SFTP suffering
by syphilis (Archbishop) on Apr 03, 2016 at 23:02 UTC
    Don't know much about HP-UX, but on Windows I use Net::SFTP::Foreign::Backend::Net_SSH2.
    It requires Net::SSH2 (which needs the libssh2 library).
    Net::SSH2 can be used directly, but Net::SFTP::Foreign::Backend::Net_SSH2 has a much nicer user interface.

    Cheers,
    Rob