This week's book giveaway is in the Reactive Progamming forum.
We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line!
See this thread for details.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Open source ssh library for java?

 
Ranch Hand
Posts: 856
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using telnet to connect to UNIX machines, to execute remote code. I used apache commons net library.

Since telnet is insecure, I made my mind to use SSH.

I am looking for SSH open source library. Is there any such open source SSH java library? I would be using java client to SSH unix machine.

Thanks
 
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSch is pretty much the only game in town. The error handling isn't as good as you'd like, but it has broad support for many important features including Kerberos authentication.
 
Ranch Hand
Posts: 781
Netbeans IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ernest Friedman-Hill wrote:JSch is pretty much the only game in town.



There is also the 'ganymed' library http://www.ganymed.ethz.ch/ssh2/ . A few year ago I compared the 'jcraft', 'ganymed' and the IBM (not open source but free-ish) libraries. Because of the IBM name, I expected the IBM ssh library to be the best but was disappointed because I kept getting unexplained random exceptions. The 'ganymed' library was easy to use but lacks some sophistication. In my simple non-exhaustive and non-formal test the jcraft product came out best. If you have time then these other products are worth testing but be careful of the IBM licence.

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try jcabi-ssh, which is a very simple and convenient wrapper of JSch
 
You get good luck from rubbing the belly of a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!