Forrest logo
tool overview
On this page you find all important commands for the CLI tool sshpass. If the command you are looking for is missing please ask our AI.

sshpass

sshpass is a utility designed for running ssh using the mode referred to as "keyboard-interactive" password authentication, but in non-interactive mode.

List of commands for sshpass:

  • ssh:tldr:06917 ssh: 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 ${filename} ssh -o StrictHostKeyChecking=no ${user}@${hostname} "${command}"
    try on your machine
    explain this command
  • ssh:tldr:21fb9 ssh: Connect to a remote server using a password supplied on a file descriptor (in this case, `stdin`).
    $ sshpass -d ${0} ssh ${user}@${hostname}
    try on your machine
    explain this command
  • ssh:tldr:a0a0e ssh: 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}
    try on your machine
    explain this command
tool overview