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

5

我正在尝试使用以下命令将我的代码推送到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.

我已上传了我的密钥:

heroku keys:add ~/.ssh/id_rsa.pub

将我的远程设置为git url:

git remote set-url heroku git@heroku.com:project-name.git

仍然没有运气。有人能指出问题吗?

我正在按照这篇简短的教程进行操作。


1个回答

4

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接