AptLynx

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

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents