in reply to Re^2: Net::SSH2 channel returns no output
in thread Net::SSH2 channel returns no output

Using Net::SSH2 reliably is quite hard, specially in non-blocking mode. Also, there were several bugs and mismatches between the underlaying libssh2 and the Net::SSH2 wrapper that I have fixed on the development version, but they are still waiting for a new module release.

You may like to try Net::SSH::Any with the Net::SSH2 backend instead. The latest stable version (0.04) was able to workaround most of the issues... well, at least it seemed to work most of the time. 0.04, come out before I went into Net::SSH2/libssh2 internals, I wrote it just looking at the docs, with lots of wrong assumptions!!!

  • Comment on Re^3: Net::SSH2 channel returns no output