Git on Bitbucket: Always asked for password, even after uploading my public SSH key

前端 未结 15 1332
情书的邮戳
情书的邮戳 2020-12-22 17:32

I uploaded my ~/.ssh/id_rsa.pub to Bitbucket\'s SSH keys as explained, but Git still asks me for my password at every operation (such as git pull).

15条回答
  •  独厮守ぢ
    2020-12-22 17:57

    Hello Googlers from the future.

    On MacOS >= High Sierra, the SSH key is no longer saved to the KeyChain because of reasons.

    Using ssh-add -K no longer survives restarts as well.

    Here are 3 possible solutions.

    I've used the first method successfully. I've created a file called config in ~/.ssh:

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

提交回复
热议问题