Git keeps asking me for my ssh key passphrase

前端 未结 14 2155
长情又很酷
长情又很酷 2020-11-27 09:07

I created keys as instructed in the github tutorial, registered them with github, and tried using ssh-agent explicitly — yet git continues to ask me for my passphrase every

14条回答
  •  天涯浪人
    2020-11-27 09:35

    I had a similar issue, but the other answers didn't fix my problem. I thought I'd go ahead and post this just in case someone else has a screwy setup like me.

    It turns out I had multiple keys and Git was using the wrong one first. It would prompt me for my passphrase, and I would enter it, then Git would use a different key that would work (that I didn't need to enter the passphrase on).

    I just deleted the key that it was using to prompt me for a passphrase and now it works!

提交回复
热议问题