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

前端 未结 15 1335
情书的邮戳
情书的邮戳 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 18:01

    Its already answered above. I will summarise the steps to check above.

    run git remote -v in project dir. If the output shows remote url starting with https://abc then you may need username password everytime.

    So to change the remote url run git remote set-url origin {ssh remote url address starts with mostly git@bitbucket.org:}.

    Now run git remote -v to verify the changed remote url.

    Refer : https://help.github.com/articles/changing-a-remote-s-url/

提交回复
热议问题