Command-line tool
sshpass
brew/sshpass
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Non-interactive SSH password auth
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
winget install --id xhcoding.sshpass-win32 -e scoop install sshpass
macOS
brew install sshpass
Linux
brew install sshpass
Connect to a remote server using a password supplied on a file descriptor (in this case, `stdin`)
sshpass -d 0 ssh user@hostname
Connect to a remote server with the password supplied as an option, and automatically accept unknown SSH keys
sshpass -p password ssh -o StrictHostKeyChecking=no user@hostname
Connect to a remote server using the first line of a file as the password, automatically accept unknown SSH keys, and launch a command
sshpass -f path/to/file ssh -o StrictHostKeyChecking=no user@hostname "command"
Related command-line tools
- win-sshpass
win-sshpass (Windows package; no description in the winget index) cross-platform windows cli ssh sftp tunnel… - mariadb
Drop-in replacement for MySQL database db sql mysql 数据库 rdbms - wifi-password
Show the current WiFi network password - pwgen
Password generator - aegis-password-generator
A secure password generation and management library - john
Featureful UNIX password cracker - john-jumbo
Enhanced version of john, a UNIX password cracker - password-generator
Memorable password generator for Node and browsers (async WebCrypto). password generator pass random browser crypto…
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents