in reply to Re: Query on Running perl Script in linux
in thread Query on Running perl Script in linux

I'm getting this error now  Invalid or bad combination of options ('passphrase', 'key_path') at /srv/data203806/CPAN/localperl/lib/5.18.2/Net/SSH/Any/Backend/Net_OpenSSH.pm line 27. I'm not using system perl I have installed perl in another directory "srv/data203806/CPAN/localperl/lib" One more query. Are CPAN modules dependent on OS platform?

Replies are listed 'Best First'.
Re^3: Query on Running perl Script in linux
by syphilis (Archbishop) on Feb 25, 2014 at 10:14 UTC
    Are CPAN modules dependent on OS platform?

    Not all CPAN modules work on every OS ... but most are designed to work on most systems.
    Net::SSH::Any is intended to work fine on both linux and windows - so it would be appreciated if you can provide the info that salva needs to sort out the problem.

    Cheers,
    Rob
Re^3: Query on Running perl Script in linux
by salva (Canon) on Feb 25, 2014 at 09:28 UTC
    Show us your updated code!

    That message means you are passing the constructor options that are incompatile. For instance, the path to a private key and a password.

    It may also be a bug inside Net::SSH::Any but without seeing your code it is hard to tell.

Re^3: Query on Running perl Script in linux
by Anonymous Monk on Mar 02, 2015 at 16:12 UTC
    I'm getting the exact same error. I'm using cygwin. This error happens when using the new method. Here is my code that generates the error. $Fab2SwitchSSH = Net::SSH::Any->new( $fab2_ip, user => $fab2_userid, password => $fab2_password);
      Enable debugging in the module and post here the output:
      $Net::SSH::Any::debug = -1;

      Also, lots of bugs have been fixed in the development version (available from GitHub) of the module. You may like to give it a try. If you are using the Perl from Cygwin, the new Ssh_Cmd backend is probably your best option.

      I have not release it to CPAN because the Net::SSH2 backend is currently broken.