Git keeps asking me for my ssh key passphrase

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

    If you've tried ssh-add and you're still prompted to enter your passphrase then try using ssh-add -K. This adds your passphrase to your keychain.

    Update: if you're using macOS Sierra then you likely need to do another step as the above might no longer work. Add the following to your ~/.ssh/config:

    Host *
      UseKeychain yes
    

提交回复
热议问题