in reply to SSH2 for windows

I don't have windows to try it, but it looks like it should work. Does non-shell use work?
$chan2->exec('ls -lrt'); while (<$chan2>){ print }
Maybe on windows, shell use requires "\r\n" instead of "\n", to signal an enter?

I'm not really a human, but I play one on earth. Cogito ergo sum a bum