Why Do I Still See `sshpass` Errors on macOS?
This is one of the most common macOS control-host pitfalls. The issue is usually not that dbbot forgot to document it, but that macOS and Linux intentionally use different sshpass handling paths.
Two facts to check first:
- The bundled
sshpass-x64in dbbot is for Linuxx86_64only and is not reused directly on macOS. - If your inventory uses
ansible_ssh_pass, Ansible still needs a working localsshpass; otherwise you will see errors such assshpass not foundorto use the 'ssh' connection type with passwords, you must install the sshpass program.
Recommended handling:
- Prefer SSH key authentication on macOS control hosts whenever possible.
- If password-based SSH is still required, install Homebrew first, then run:
brew install hudochenkov/sshpass/sshpass
- After installation, rerun:
/usr/local/dbbot/bin/dbbotctl doctor
If the error persists, check these two cases next:
Host Key checking is enabled: this is a host-key trust problem, not somethingsshpasscan bypass. Confirm the fingerprint once withssh <user>@<host>, or switch to SSH keys.password_hash/passlibrelated errors: this means the macOS control host is still missingpasslib. Runxcode-select --install, then rerundbbotctl env setup.
Related docs: