Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
"be consistent"
 
PerlMonks  

Re^3: Is it possible to see what Net::OpenSSH is doing?

by salva (Monsignor)
on Jun 12, 2013 at 11:34 UTC ( #1038439=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Is it possible to see what Net::OpenSSH is doing?
in thread Is it possible to see what Net::OpenSSH is doing?

Net::OpenSSH does not send commands to a shell.

A possible way, quite difficult, may be to abuse the OSTracer interface that allows to run the master ssh process with strace (or your favourite OS equivalent).

You will have to write your own tracer able to dump the IO interactions of the ssh master process to the console.


Comment on Re^3: Is it possible to see what Net::OpenSSH is doing?
Re^4: Is it possible to see what Net::OpenSSH is doing?
by walkingthecow (Friar) on Jun 12, 2013 at 11:50 UTC
    I just realized you wrote this module. Thank you. I've been using Expect for years. I just started using Net::OpenSSH recently, and it has really made my life a lot easier. I'm looking at strace output as well as OSTracer to see what I can come up with. I will post back here with any results (i.e., don't expect me to post back here).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2014-04-20 03:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls