JSch is a pure Java implementation of SSH2. It allows you to connect to an sshd server and use port forwarding, X11 forwarding, file transfer, etc. You can integrate its functionality into your own Java programs.
This release fixes the freeze problem in 'diffie-hellman-group-exchange-sha1', and implements the timeout for remote port forwarding and X11 forwarding.
URL: JSch -- Java Secure Channel