This question already has an answer here:
- Shell Script for logging into a ssh server 10 answers
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?