tags:

views:

1173

answers:

2

I'm trying to run a command over ssh with jsch, but jsch has virtually no documentation and the examples I've found via google are terrible. For example, this one doesn't show code for handling the output stream. And, this one using an ugly hack to know when to stop reading from the output stream.

+1  A: 

The gritty terminal was written to use Jsch, but with better handling and vt102 emulation. You can take a look at the code there. We use it and it works just fine.

omerkudat
+1  A: 

using ssh from java should not be as hard as jsch makes it. you might be better off with sshj.

shikhar
thanks, i'll try that out when I get a chance
jshen