https://thenewstack.io/linux-hide-your-shell-passwords-with-sshpass/
Читать далее...The New Stack
Linux: Hide Your Shell Passwords with sshpass
Hard-coding is never the answer. Instead, use sshpass when you need to put a password in your Bash script.