aspose file tools*
The moose likes Java in General and the fly likes Open source ssh library for java? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Open source ssh library for java?" Watch "Open source ssh library for java?" New topic
Author

Open source ssh library for java?

Amandeep Singh
Ranch Hand

Joined: Jul 17, 2008
Posts: 844
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


SCJP 1.4, SCWCD 5, SCBCD 5, OCPJWSD 5,SCEA-1, Started Assignment Part 2
My blog- http://rkydesigns.blogspot.com
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

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.


[Jess in Action][AskingGoodQuestions]
James Sabre
Ranch Hand

Joined: Sep 07, 2004
Posts: 781

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.


Retired horse trader.
 Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Open source ssh library for java?
 
Similar Threads
telent produt equivalent to linux
How to unzip a file on a remote unix server using java
how to connect router using java application
Invoking unix shell commands from java.
to run a unix script