I like how Net::SSH2 works with channels and subsystems, a cursory look at Net::OpenSSH does not reveal much on that but I will take a closer look.
Net::OpenSSH does not expose the Channel concept to the user. It gets hidden behind higher level and more familiar abstractions (i.e. processes, pipes, redirections, etc.).
Still is very odd that many Unix flavors work just fine and just Fedora has an issue...
Net::SSH2 and the libssh2 library are not mature yet and critical bugs still pop up now and there... though, they are active projects so try to write a minimal script reproducing the error and send it to the module author.
| [reply] |
Hi Paulo,
Did you get any resolution for this?
I have the same issue on my suse linux, but it doesn't work with the exact bytes too for me.
How did you get the exact number of bytes in the channel?
Could you please paste your code?
Thanks,
Madhuri | [reply] |
No I just moved to another box...we figured it was something wrong with that OS/libs combination as we did not find the issue anywhere else
In my code snippet, just replace the 567 by a higher number, it should tell you how many bytes it read.
Thanks,
Paulo
| [reply] |