sshpass-node-cli
v1.0.0
Published
A Node.js implementation of sshpass with multiple prompt support
Maintainers
Readme
sshpass-node-cli
A Node.js implementation of sshpass that supports multiple password prompts. Useful for scripting SSH connections or other interactive commands that require a password.
Installation
npm install -g sshpass-node-cliNote: This package depends on node-pty, which requires Python and a C++ compiler to build during installation.
Usage
sshpass-node -p <password> <command> [args...]Example
sshpass-node -p mysecret ssh user@hostLooping Example
This tool supports multiple password prompts, making it suitable for loops or retries:
until sshpass-node -p "mypassword" ssh user@host "ls"; do
echo "Retrying..."
sleep 1
doneLicense
ISC
