Java SSH libraries
I currently know of the following java-based SSH libraries which offer SSH client, server and terminal services:
- jsch (http://www.jcraft.com/jsch)
used e.g. in the ant scp/sftp task - j2ssh (http://j2ssh.sourceforge.net)
unfortunately they have changed their license a while ago and thus the newest version cannot be used in commercial software anymore. It offered not only client but also a SSH server in java, which was very useful. This project seems stalled, only the commercial variant is being developed. - ganymed-ssh (http://www.ganymed.ethz.ch/ssh2)
also here the project is not further develped but there is a company taking care now under http://www.trilead.com/Products/Trilead_SSH_for_Java.
We currently use jsch as preferred client SSH library also because we have it in the boat already with ant and it has a good license (LGPL).
ganymed-ssh/trilead-ssh seems to support unix terminal support for ssh, that is that one can write a real ssh shell with the library, this is interesting!