Cannot push to git repository - permission denied

前端 未结 9 1064
太阳男子
太阳男子 2020-12-22 22:39

I have a following problem:

$ git push -u origin master
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you ha         


        
9条回答
  •  孤城傲影
    2020-12-22 23:21

    I had the similar problem and my problem was solved by running the following command to add my key to the list of known keys:

    ssh-add ~/.ssh/id_rsa
    

    Hope it solves yours too. ;)

提交回复
热议问题