Repository access denied. access via a deployment key is read-only

前端 未结 18 2035
孤城傲影
孤城傲影 2020-11-29 15:49

After successfully cloning my repo from heroku and added another remote

1/ git clone git@heroku.com:[APP].git
2/ git remote add bitbucket ssh://git@bitbucket         


        
18条回答
  •  暖寄归人
    2020-11-29 16:16

    Recently I faced the same issue. I got the following error:

    repository access denied. access via a deployment key is read-only.

    You can have two kinds of SSH keys:

    1. For your entire account which will work for all repositories
    2. Per repository SSH key which can only be used for that specific repository.

    I simply removed my repository SSH key and added a new SSH key to my account and it worked well.

    I hope it helps someone. Cheers

提交回复
热议问题