41 releases

0.10.3 Jan 22, 2024
0.10.2 Dec 20, 2023
0.10.1 Oct 8, 2023
0.9.9 Jan 14, 2023
0.6.2 Jun 4, 2020

#1 in #remote-host

Download history 18448/week @ 2023-11-04 16062/week @ 2023-11-11 15666/week @ 2023-11-18 8857/week @ 2023-11-25 8598/week @ 2023-12-02 8697/week @ 2023-12-09 14031/week @ 2023-12-16 13489/week @ 2023-12-23 18687/week @ 2023-12-30 16152/week @ 2024-01-06 18767/week @ 2024-01-13 15160/week @ 2024-01-20 17091/week @ 2024-01-27 9361/week @ 2024-02-03 5654/week @ 2024-02-10 7439/week @ 2024-02-17

40,961 downloads per month
Used in 17 crates (14 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.



~192K SLoC