JASON HOLT
2015-09-02 18:40:25 UTC
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
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