the_open_door
coffee
ESEN
← Tools

sshpass

Non-interactive SSH with a password (spraying, legacy algorithms).

Feeds a password to ssh non-interactively, handy to automate access and for spraying scripts. It also lets you slip in options that enable legacy algorithms (KexAlgorithms, HostKeyAlgorithms) when connecting to old SSH servers.

Family Access, shells & transfer

Flags -p ssh -o

Concepts Credential reuse, Password Spraying

Cheatsheet SSH forwarding

Installation

sudo apt install -y sshpass

Useful commands1 commands

Appears in

Some machines where its use is documented; not an exhaustive list.