http://www.perlmonks.org?node_id=972022


in reply to channel SSH2

no, unless you run a shell on the remote side and make your program talk to it.