in reply to Re^3: Net::SSH::Perl compile with SunStudio 12.2 instead of SunPro
in thread SOLVED: Net::SSH::Perl compile with SunStudio 12.2 instead of SunPro

Salva-

I installed Net::OpenSSH .52 - dev version - and am trying to substitute this for Net::SSH::Perl.

use Net::OpenSSH::Compat::Perl qw(:supplant); use Net::SSH::Perl; my $ssh = Net::SSH::Perl->new ('nogaro', options => [ "ssh_cmd /opt/c +sw/bin/ssh" ,"debug yes", "interactive yes" ]); $ssh->login('root', 'no$go^'); my ($out, $stderr, $exit) = $ssh->cmd ("date");

my error is:

Invalid or bad combination of options ('batch_mode') at /opt/csw/share +/perl/site_perl/Net/OpenSSH/Compat/Perl.pm line 120

I get this error with 'Interactive' or 'BatchMode' on or off. My Perl is not good enough to determine why this occurs. Can you suggest a course for a solution?

I want to make interactive requests to a server btw

$ /opt/csw/bin/ssh -v

OpenSSH_5.4p1, OpenSSL 0.9.8r 8 Feb 2011

perl is 5.10.0

solaris 10

Thanks in advance

Replies are listed 'Best First'.
Re^5: Net::SSH::Perl compile with SunStudio 12.2 instead of SunPro
by salva (Canon) on Oct 27, 2011 at 05:56 UTC
    The current development version is 0.53_03!