Git keeps asking me for my ssh key passphrase

前端 未结 14 1915
长情又很酷
长情又很酷 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!

    0 讨论(0)
  • 2020-11-27 09:37

    If you are not using GitBash and are on Windows - you need to start your ssh-agent using this command

    start-ssh-agent.cmd
    

    If your ssh agent is not set up, you can open PowerShell as admin and set it to manual mode

    Get-Service -Name ssh-agent | Set-Service -StartupType Manual
    
    0 讨论(0)
提交回复
热议问题