Input password into SSH without typing
sshpass
does not have to show the password in the ps. It might read it an environment variable:
SSHPASS=12345 sshpass -e ssh user@host
or from a file:
sshpass -f /path/to/password_file ssh user@host
My sshpass has an option -f
to read from a file. So with bash process substitution you can do
sshpass -f <(myscript_call_1password) ssh host