in reply to Re^2: 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

Net::OpenSSH::Compat currently requires the development version of Net::OpenSSH that you can get from here!
  • Comment on Re^3: Net::SSH::Perl compile with SunStudio 12.2 instead of SunPro

Replies are listed 'Best First'.
Re^4: Net::SSH::Perl compile with SunStudio 12.2 instead of SunPro
by srp0010 (Initiate) on Oct 26, 2011 at 16:24 UTC

    Net::OpenSSH is installed Salva but the 'batch_mode' issue remains:

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

    I would prefer to compile Net::SSH::Perl and not modify the tools for a new module. However, if you can suggest where to dig in and if the tool changes will be minimal then I could go that route too.

      You have probably installed the stable version of Net::OpenSSH but Net::OpenSSH::Compat requires the development version!

        Ahh. Dev vers :-p.

        Ok. Updated perl mods to include Net-OpenSSH-0.52 but still have the same issue with batch-mode. :-(

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

Re^4: Net::SSH::Perl compile with SunStudio 12.2 instead of SunPro
by srp0010 (Initiate) on Oct 26, 2011 at 22:38 UTC

    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

      The current development version is 0.53_03!