Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: Net::OpenSSH fails with CyberArk

by salva (Canon)
on Jun 24, 2022 at 07:10 UTC ( [id://11145014]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Net::OpenSSH fails with CyberArk
in thread Net::OpenSSH fails with CyberArk

In order to avoid the incorrect parsing of the target argument you can call Net::OpenSSH (unmodified) constructor as follows:
$ssh = Net::OpenSSH->new('cyberark.internal.com', user => 'me@admin@remote.host', ...)

Regarding the capture issue, well, you would have to show us the complete script and debugging output, otherwise it is impossible to know what is going on.

Also, I don't know how CyberArk does its magic. Maybe it sets a wrapper for the real OpenSSH ssh command, and that may interfere with some of the more advanced usages of the command as the ones required by Net::OpenSSH.

Replies are listed 'Best First'.
Re^4: Net::OpenSSH fails with CyberArk
by jhuijsing (Acolyte) on Jun 25, 2022 at 07:06 UTC
    Thanks Salva That's fixed my problem Capture works correctly now

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-19 16:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found