Git keeps asking me for my ssh key passphrase

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

    on mac, if your ssh key need passphrase everytime and you want to skip it, then you can try below, it works fine for me

    1. eval "$(ssh-agent -s)"
    2. ssh-add -K .ssh/id_rsa
    3. add this default ssh configuration works for me

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

提交回复
热议问题