SSH does not have an easy way to send passwords over standard input, making it hard to automate. While it’s not ideal for security, you can automate SSH password authentication in bash scripts using the sshpass utility.
Read This Article on CloudSavvy IT ›
https://bit.ly/3Fgs3US
https://bit.ly/3Fgs3US