in reply to Re: Changing a script from Net::Telnet to Net::SSH2
in thread Changing a script from Net::Telnet to Net::SSH2

I may try that if I can get it to install. I'm using a rather cranky Solaris 10 server and havent had much luck getting anything new to install on it.
  • Comment on Re^2: Changing a script from Net::Telnet to Net::SSH2

Replies are listed 'Best First'.
Re^3: Changing a script from Net::Telnet to Net::SSH2
by salva (Canon) on Mar 04, 2016 at 17:50 UTC
    On Solaris you have to ensure that the OpenSSH client is installed. The one from SUNOracle is an old fork of the OpenSSH one that does not provide some features required by Net::OpenSSH.

    Then, you will have to tell Net::OpenSSH where to find it. For instance:

    my $ssh = Net::OpenSSH->new($host, ssh_cmd => '/opt/OpenSSH/bin/ssh');