Ganymed SSH-2 is a free and open source Java library that implements the SSH-2 protocol in pure Java.
Ganymed SSH-2 allows one to connect to SSH servers from within Java programs.
Ganymed SSH-2 supports SSH sessions (remote command execution and shell access), local and remote port forwarding, local stream forwarding, X11 forwarding, SCP and SFTP. There are no dependencies on any JCE provider, as all crypto functionality is included.