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

#75 in Network programming

Download history 13228/week @ 2023-12-23 18485/week @ 2023-12-30 15979/week @ 2024-01-06 18600/week @ 2024-01-13 14912/week @ 2024-01-20 16837/week @ 2024-01-27 9188/week @ 2024-02-03 5358/week @ 2024-02-10 8969/week @ 2024-02-17 7507/week @ 2024-02-24 6343/week @ 2024-03-02 11099/week @ 2024-03-09 8801/week @ 2024-03-16 8310/week @ 2024-03-23 4807/week @ 2024-03-30 9576/week @ 2024-04-06

33,283 downloads per month
Used in 18 crates (15 directly)

MIT/Apache

135KB
2K SLoC

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.

License

Licensed under either of

at your option.

Contribution

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.

./run_ci_tests.sh

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.

./build_doc.sh

Dependencies

~5–17MB
~203K SLoC