Using Windows 7 64 bit and jsch 0.1.53 I can connect fine as root to a local 
Debian 8 machine. with


Channel channel = session.openChannel("shell");


and I can read the input stream, but the channel.getInputStream().available() 
always returns 0 so I don't know when the input is complete. The examples 
included in jsch use the available() method for this purpose. Can I do anything 
to make available() behave as expected? Is there a workaround?


I am also doing


session.setConfig("StrictHostKeyChecking", "no");


but I assume this has no bearing on the problem...


Thanks for your help.


Jason
------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to