|The stupid question is the question not asked|
Comment onby gods
|on Feb 11, 2000 at 00:06 UTC||Need Help??|
Net::OpenSSH or actually the SSH protocol do not work exactly like that. There is not a remote session where you send commands and get the response back.
Instead there is a binary protocol and on top of it bidirectional IO channels can be created and remote commands or port forwarders attached to them.
In general there is no way to see the IO operations happening because there are handled directly by the master ssh program running on the background. The exception is when you use capturing methods as then, it is Net::OpenSSH who is talking at the other side.
In any case, the module has a debugging mode. For instance, setting...
... would give you a good idea of what is going on.
Another possibility is to pipe the output of any command through tee so that it appears on the screen and is also saved to a file:
In reply to Re: Is it possible to see what Net::OpenSSH is doing?