Git Can';t将我的代码推送到Heroku:权限被拒绝<;公钥>;致命:无法从远程存储库读取

Git Can';t将我的代码推送到Heroku:权限被拒绝<;公钥>;致命:无法从远程存储库读取,git,heroku,deployment,Git,Heroku,Deployment,我试图用这行代码将我的代码推送到Heroku: git push heroku master 但我一直收到以下错误/消息: Warning: Permanently added 'heroku.com,50.85.49.333' <RSA> to the list of known hosts. Permission denied <public key> fatal: Could not read from remote repository Please mak

我试图用这行代码将我的代码推送到Heroku:

git push heroku master
但我一直收到以下错误/消息:

Warning: Permanently added 'heroku.com,50.85.49.333' <RSA> to the list of known hosts. 
Permission denied <public key>
fatal: Could not read from remote repository

Please make sure you have the correct access rights and the repository exists.
并将my remote设置为git url:

git remote set-url heroku git@heroku.com:project-name.git
还是没有运气。有人能指出问题吗


我在听简短的啧啧声。

在发布这个问题之前,我真的应该更努力地搜索,因为我在另一个几乎同名的问题中找到了答案

可能存在的副本
git remote set-url heroku git@heroku.com:project-name.git