Git keeps asking me for my ssh key passphrase

前端 未结 14 2089
长情又很酷
长情又很酷 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:34

    Try adding this to your ~/.ssh/config:

    Host *
       AddKeysToAgent yes
       UseKeychain yes
       IdentityFile ~/.ssh/id_rsa
    

    ... assuming your private key is named id_rsa

提交回复
热议问题