#host #ssh #parallel #toml #command #config-file #tool

app pssh-rs

pssh-rs is a parallel ssh tool written in rust

11 releases

0.5.1 Oct 26, 2024
0.5.0 Oct 26, 2024
0.2.7 Feb 21, 2023
0.2.4 Jan 9, 2023
0.1.0 Dec 3, 2022

#59 in #toml

Download history 21/week @ 2024-07-28 30/week @ 2024-09-22 145/week @ 2024-10-20 78/week @ 2024-10-27 6/week @ 2024-11-03

229 downloads per month

Custom license

14KB
300 lines

pssh-rs is a parallel ssh tool written in rust.

Example

  1. Generate config file template:
./pssh-rs init

after this command, hosts.toml will be generated at the current directory, change file contents and using --config ./hosts.toml argument to use this file.

  1. run date command on default hosts:
./pssh-rs --config=./hosts.toml --num_threads=10 run 'date'

run date on all nginx hosts

./pssh-rs --config=./hosts.toml --num_threads=10 -s nginx run 'date'
  1. send file to remote hosts:
./pssh-rs --config=./hosts.toml send ./hello.txt /tmp/

Install

just run cargo install pssh-rs to install.

Building

pssh-rs can be built with cargo build --release, or using the following command to build statically:

sudo apt install musl-tools -y
rustup target add x86_64-unknown-linux-musl
cargo build --target=x86_64-unknown-linux-musl --release

Dependencies

~8–13MB
~267K SLoC