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.

Cleondris Logo
Copyright © 2006-2023 by
Cleondris GmbH, Switzerland

Follow us on social media:


CLEONDRIS®, CDM®, SNAPGUARD® and ULTRAVIRT® are registered trademarks of Cleondris GmbH in Switzerland, the United States, the EU, China, Liechtenstein and/or other jurisdictions. VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. NetApp, Data ONTAP, FlexClone, FlexVol, MetroCluster, Network Appliance, ONTAPI, RAID-DP, SnapMirror, SnapVault, vFiler and WAFL are trademarks or registered trademarks of NetApp, Inc. in the U.S. and/or other countries. All other brands or products are trademarks or registered trademarks of their respective holders and should be treated as such.

Please note our General Terms of Use of this Website as well as our Privacy Policy. For general inquiries, please refer to our contact information and impress. Thank your for visiting our website.