Ganymed SSH-2 for Java

Ganymed SSH-2 for Java is an open source library which implements the SSH-2 protocol in pure Java (originally developed for J2SE 1.4.2). It allows one to connect to SSH servers from within Java programs. It 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.

Originally, Ganymed SSH-2 for Java was developed back in 2005 for the Ganymed replication project at ETH Zurich (Swiss Federal Institute of Technology) by Dr. Christian Plattner, founder of Cleondris.

For a long time, Ganymed SSH-2 for Java has been the de-facto standard for open source based SSH communication in Java software. Past Google searches for the license text (as well as e-mail requests that we have received over the years) clearly indicate that the library is used in many industrial products, but also in other open source software, e.g., in the widely used SVN plugin for Eclipse, in Cyberduck (a popular SFTP client for the Mac) and not to forget in the Android operating system running on a countless number of mobile devices.

Currently, there is no actively maintained public version of the library available, but Cleondris offers downloads of the archived public releases.

Archived Releases / Download


Ganymed SSH-2 for Java features Javadoc documentation in outstanding quality as well as a FAQ and example code that covers most features of the software. The source code is clearly structured and emphasizes on clarity and thread safety. The protocol architecture implemented by the library is documentated in RFC 4251.

Please read the documentation and the supplied example code carefully. Note that Ganymed SSH-2 for Java is open source software provided to you "AS-IS" without any kind of warranty. Cleondris does not offer any kind of support for Ganymed SSH-2 for Java, we just provide the archived downloads.

The Javadoc documentation covers all the functionality found in Ganymed SSH-2 for Java.
Hint: to start with, read the documentation for the Connection class, then dig deeper.


The Ganymed SSH-2 for Java library is released under a BSD style license. The Java implementations of the AES, Blowfish and 3DES ciphers have been taken (and slightly modified) from the cryptography package released by The Legion Of The Bouncy Castle.

For details, please see the included LICENSE.txt file.



Stay tuned for the upcoming HCI, SolidFire and AltaVault support in Cleondris Data Manager. Please contact us if you would like to be in the beta progam.


Don't miss our SnapGuard presentation (session 34009-2, Wednesday Nov 15th at 15:00) at NetApp Insight Berlin. During the whole event, you can also meet us and our distributor Arrow at booth SA1 (at the entrance of hall 2.2).


Join us at the Swiss NetApp Technology Forum at the Thessoni Hotel, Regensdorf (Zurich).


Uli Keller is joining Cleondris as director of sales for Germany and Austria.