SSH library for Java

Viewed 280642

Does anyone have an example of an SSH library connection using Java.

7 Answers

The Java Secure Channel (JSCH) is a very popular library, used by maven, ant and eclipse. It is open source with a BSD style license.

I just discovered sshj, which seems to have a much more concise API than JSCH (but it requires Java 6). The documentation is mostly by examples-in-the-repo at this point, and usually that's enough for me to look elsewhere, but it seems good enough for me to give it a shot on a project I just started.

Take a look at the very recently released SSHD, which is based on the Apache MINA project.

Related