无法将我的代码推送到Heroku:权限被拒绝<public key =“”>致命:无法从远程存储库读取</public>

时间:2013-10-23 10:52:21

标签: 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 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

仍然没有运气。有谁可以指出这个问题?

我正在关注THIS短暂的啧啧。

1 个答案:

答案 0 :(得分:4)

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

Heroku 'Permission denied (publickey) fatal: Could not read from remote repository' woes