Net-SSH Prompts for Passphrase even with keys loaded in ssh-agent
Reported by adlongwell | April 20th, 2011 @ 07:41 PM
I formerly had version 2.0.24 of Net::SSH. After upgrading, I'm suddenly prompted for my private key passphrase on every connection even though I have ssh-agent running with the key loaded. An ssh connection in the same terminal window connects fine to the same server with no passphrase request.
I noticed the problem through Capistrano, but the problem is reproducible with a simple Net::SSH script directly.
I downgraded back to 2.0.24 and the problem was fixed. After up and downgrading each version between 2.0.24 and the latest, I've narrowed the problem to this commit:
My key file is ~/.ssh/id_dsa, but I do not have a ~/.ssh/id_dsa.pub file with my public key in the ~/.ssh directory. I haven't debugged in code, but I believe something about that commit is causing the file-based lookups to start ignoring the data received from ssh-agent.
My assumptions seem correct, because creating an id_dsa.pub file containing my public key also fixes the problem.
Comments and changes to this ticket
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Please do not create new issues here. Use github issues instead: