48 releases

new 0.11.4 Nov 27, 2024
0.11.2 Sep 10, 2024
0.10.4 Apr 26, 2024
0.10.3 Jan 22, 2024
0.6.2 Jun 4, 2020

#78 in Network programming

Download history 9220/week @ 2024-08-12 11462/week @ 2024-08-19 12666/week @ 2024-08-26 9506/week @ 2024-09-02 10361/week @ 2024-09-09 8348/week @ 2024-09-16 12038/week @ 2024-09-23 10592/week @ 2024-09-30 9851/week @ 2024-10-07 10226/week @ 2024-10-14 9928/week @ 2024-10-21 10148/week @ 2024-10-28 10137/week @ 2024-11-04 9153/week @ 2024-11-11 7513/week @ 2024-11-18 5966/week @ 2024-11-25

33,138 downloads per month
Used in 25 crates (17 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

~4–14MB
~191K SLoC