37 releases

Uses new Rust 2021

0.9.9 Jan 14, 2023
0.9.8 Nov 7, 2022
0.9.7 Sep 3, 2022
0.9.6 Jul 18, 2022
0.6.2 Jun 4, 2020

#100 in Network programming

Download history 1034/week @ 2022-10-07 923/week @ 2022-10-14 855/week @ 2022-10-21 736/week @ 2022-10-28 892/week @ 2022-11-04 948/week @ 2022-11-11 1165/week @ 2022-11-18 1318/week @ 2022-11-25 1117/week @ 2022-12-02 1547/week @ 2022-12-09 2001/week @ 2022-12-16 1341/week @ 2022-12-23 1471/week @ 2022-12-30 1869/week @ 2023-01-06 2146/week @ 2023-01-13 2120/week @ 2023-01-20

8,023 downloads per month
Used in 8 crates (7 directly)



Crates.io Documentation Codecov

Scriptable SSH through OpenSSH.

This crate wraps the OpenSSH remote login client (ssh on most machines), and provides a convenient mechanism for running commands on remote hosts. Since all commands are executed through the ssh command, all your existing configuration (e.g., in .ssh/config) should continue to work as expected.

The library's API is modeled closely after that of [std::process::Command], since ssh also attempts to make the remote process seem as much as possible like a local command.


Licensed under either of

at your option.


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Run integration tests

Requires docker and cargo-hack.

Check getting Docker guide on how to install docker, and use cargo install cargo-hack to install cargo-hack.


It will create a container which runs sshd, setup ssh-agent, and environment variables that are required to run the integration tests.

It will also test different combination of feature flags to ensure they all compile without error.

Build documentation

Requires nightly cargo.

To install nightly cargo, run rustup toolchain install nightly.



~119K SLoC