Skip to content
Go to file


Failed to load latest commit information.
Latest commit message
Commit time

Donate via Zerocracy

EO principles respected here Managed by Zerocracy DevOps By

Build Status PDD status Maven Central Javadoc Dependencies

jpeek report

More details are here: Also, read this blog post: Simple Java SSH Client.

It is a convenient SSH client for Java:

import com.jcabi.ssh.Shell;
import com.jcabi.ssh.Ssh;
Shell shell = new Ssh("", 22, "username", "key...");
String stdout = new Shell.Plain(shell).exec("echo 'Hello, world!'");

The key here is your private SSH key, usually the one you have in ~/.ssh/id_rsa.

There is also a convenient SSHD class, a runner of ssh daemon, for unit testing:

try (Sshd sshd = new Sshd()) {
  String uptime = new Shell.Plain(
    Ssh(, sshd.login(), sshd.port(), sshd.key())

Version 1.6 works under Java 1.8+. If your Java version is ealier, use version 1.5.2.


If you have any questions about the framework, or something doesn't work as expected, please submit an issue here.

How to contribute?

Fork the repository, make changes, submit a pull request. We promise to review your changes same day and apply to the master branch, if they look correct.

Please run Maven (3.2+) build before submitting a pull request:

$ mvn clean install -Pqulice

Make sure you have Java version 7 or higher.

You can’t perform that action at this time.