Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Net::OpenSSH + CGI problem

by salva (Canon)
on Feb 16, 2017 at 07:47 UTC ( [id://1182124]=note: print w/replies, xml ) Need Help??


in reply to Net::OpenSSH + CGI problem

Both ssh and Net::OpenSSH are able to provide quite detailed debugging information.

Redirect STDERR to some file or ensure it ends in your apache logs. Add $Net::OpenSSH::debug=-1 at the beginning of your script and also, call the constructor with the option master_opts=>'-vvv'.

Then, after removing any confidential information from the output, post it here!

Replies are listed 'Best First'.
Re^2: Net::OpenSSH + CGI problem
by fwalters (Novice) on Feb 16, 2017 at 13:32 UTC

    Thanks!

    error.log contents after debug

      Quick followup...

      we run some Cisco ASR and IOS based routers, apparently the IOS based routers work fine, while the ASR (IOXR) based routers.

      The main difference, at least visually, is the prompt:

      For the working router the prompt I get is:

      1-CHI-RR1-Curly#

      While for the one that doesn't work I get:

      RP/0/RSP0/CPU0:1-CHI-PE14-SOB-QuiGon#
        Does Net::OpenSSH work against both kinds of routers when used outside the CGI environment?

        The module FAQ contains an entry about common issues when connecting to network equipment.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1182124]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-03-19 04:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found