We have the base64 encoded SSH key password (so not a user account password!).
We have to keep an SSH tunnel opened to a place.
But sometimes the connection is bad and the SSH session terminates.
When we start the SSH tunnel, the SSH private key is encrypted with a password, thus requiring a human to input the pw.
We know that it is just obscurity to have the private ssh key password in a file, but it helps :)
Question: How can we automate the pw input when we open the tunnel? Maybe "expect" can help?
sshpass
https://www.cyberciti.biz/faq/noninteractive-shell-script-ssh-password-provider/ – Zumo de Vidrio Mar 14 '17 at 08:32