I need to frequently login to many machines but I can only login to them from a proxy machine or using an SSH tunnel (by tunneling through that proxy machine). The problem is that I cannot use
authorized_keys on the proxy machine, therefore I need to enter the password every time I setup the tunnel.
How can I automate it? I was thinking about combining
expect with some way to enter the password automatically without having to store it openly.
I am using Linux on all of the machines mentioned.