in reply to Re: SSH and qx
in thread SSH and qx

Thanks for taking the time to look at this.

The version of Perl running is v5.12.3. Neither Net::SSH nor NET::OpenSSH, which is what I use elsewhere, are installed. v5.12.3 is good in that it opens some of the options that you and haukex have mentioned. This is the last machine of it's ilk in the environment and due to a number of reasons its retirement keeps getting postponed, and while I'm attempting to work through the resistance facing the installation of even local copies of Perl modules, unless I get permission to install new modules I'm stuck with what's currently installed.

Thanks,
cbeckley

Replies are listed 'Best First'.
Re^3: SSH and qx
by salva (Canon) on Mar 14, 2017 at 07:55 UTC
    Net::OpenSSH is a pure Perl module. You just have to copy everything in the lib directory from the module distribution into some directory in the machine and add that directory into @INC to get it working.

    The only possible issue would be that the available ssh could be too old. If that is the case, you can also try Net::SSH::Any, that will happily work with older versions of ssh using the Ssh_Cmd backend.

    Net::SSH::Any is also a pure Perl module that you can install in the same way, just copying the contents of its lib directory.

      Wonderful! That worked like a charm! Thank you so much!

      Now I have these even older boxes where perl -v returns 5.004_04 ... :-p

      Thanks,
      cbeckley