Expand description
This library is a simple wrapper around the ssh2
crate
to run SSH/SCP commands on a “mass” of hosts in parallel.
The massh
library is mainly intended to support the massh
binary:
a Rust version of the parallel SSH program pssh(1)
.
If you want to try the CLI app, you can check it on GitHub and install it with Cargo:
cargo install massh
The rest of this documentation focuses on the library crate,
which offers two types of SSH client: MasshClient
and SshClient
.
Check their respective documentation for the details of their public API with examples.
Structs§
- Massh
Client - SSH client to run commands on multiple hosts in parallel.
- Massh
Config - Configuration for a
MasshClient
. - Massh
Host Config - Configuration for a
MasshClient
target host. - SshClient
- SSH client to run commands on a single host.
- SshOutput
- SSH command output.
Enums§
- SshAuth
- SSH authentication method.
Type Aliases§
- Massh
Host - Unique string identifier (
username@ip_address:port
) for aMasshClient
target host. - Massh
Receiver - Receiving half of a
std::sync::mpsc::channel
which receives exactly 1 message per host.