sshpass offers you the ability to automatically offer a password via SSH when you are prompted for it.
git clone https://github.com/ling-zhou/rust-sshpass
cd rust-sshpass
make
~/.cargo/bin/sshpass -h
https://github.com/ling-zhou/rust-sshpass/releases/
This repository is fully compatible with https://github.com/kevinburke/sshpass
Comparison with https://github.com/kevinburke/sshpass:
❗ 1. the original password from '-p' can not be hidden because of the limit of rust
✅ 2. the main options parsing is not affected by the subcommand options
✅ 3. feature: the password env-var name can be customized
✅ 4. signals can be handled correctly
✅ 5. statically linked, no dependencies