Git keeps asking me for my ssh key passphrase

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

    This has been happening to me after restarts since upgrading from OS X El Capitan (10.11) to macOS Sierra (10.12). The ssh-add solution worked temporarily but would not persist across another restart.

    The permanent solution was to edit (or create) ~/.ssh/config and enable the UseKeychain option.

    Host *
        UseKeychain yes
    

    Related: macOS keeps asking my ssh passphrase since I updated to Sierra

提交回复
热议问题