Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ganymed vs JSch?

Tags:

java

ssh

I am currently evaluating opensource tools for ssh and http tunneling in Java. I have come down to two contenders: Ganymed and JSch. Does anyone know the pros and cons of each?

like image 376
yazz.com Avatar asked Dec 02 '25 08:12

yazz.com


2 Answers

Here's my take on both after using them at length:

  • JSch: Ultimately more flexible, but at the cost of being much more low level. It is also not well documented (no JavaDoc tags) but is none-the-less very stable.
  • Ganymed: Provides good support for most of the standard SSH operations you might need (port forwarding, reverse port forwarding, SCP file copying etc.). Documentation is decent in the form of Javadoc of primary public classes.

The biggest difference, in my view, is that Ganymed provides a more intuitive and encapsulated API that maps directly to high level SSH operations.

//Nicholas

like image 163
Nicholas Avatar answered Dec 04 '25 00:12

Nicholas


I don't know about Ganymed.
But I have used JSch extensively for remote login and script executions. I used Google Expect4j with JSch for executing scripts on remote machines in expect mode(send/wait). You can get the whole output of executed command or scripts in your code using JSch/Expect4j/Closures.

Thanks.

like image 36
Nikunj Avatar answered Dec 03 '25 23:12

Nikunj



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!