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.$Net::OpenSSH::debug = 4|8|64;
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:
$ssh->system({ stdout_file => ['|-', 'tee'. 'cmd_output.txt ], stderr_to_stdout => 1 }, @cmd);
In reply to Re: Is it possible to see what Net::OpenSSH is doing?
by salva
in thread Is it possible to see what Net::OpenSSH is doing?
by walkingthecow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |