git 无法将我的代码推送到 Heroku:权限被拒绝 <public key> 致命:无法从远程存储库读取
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19539671/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can't push my code to Heroku: Permission denied <public key> fatal: Could not read from remote repository
提问by Daft
I'm trying to push my code to Heroku with this line:
我正在尝试使用以下行将我的代码推送到 Heroku:
git push heroku master
But I keep getting the following error/message:
但我不断收到以下错误/消息:
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.
I have uploaded my key:
我已经上传了我的密钥:
heroku keys:add ~/.ssh/id_rsa.pub
And set my remote to the git url:
并将我的遥控器设置为 git url:
git remote set-url heroku [email protected]:project-name.git
And still no luck. Could anyone point out the problem?
仍然没有运气。有人能指出问题吗?
I am following THISshort tut.
我正在关注这个简短的啧啧。
采纳答案by Daft
I really should have searched harder before posting this question as I found the answer in another question with an almost identical name.
我真的应该在发布这个问题之前更努力地搜索,因为我在另一个名字几乎相同的问题中找到了答案。
Heroku 'Permission denied (publickey) fatal: Could not read from remote repository' woes