sshpass Command Examples

An SSH password provider. It works by creating a TTY, feeding the password into it, and then redirecting stdin to the SSH session. More information: https://manned.org/sshpass.

sshpass -d {{0}} ssh {{user}}@{{hostname}}

sshpass -p {{password}} ssh -o StrictHostKeyChecking=no {{user}}@{{hostname}}

sshpass -f {{path/to/file}} ssh -o StrictHostKeyChecking=no {{user}}@{{hostname}} "{{command}}"