微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

ruby-on-rails – git push heroku master错误权限被拒绝(publickey)

参见英文答案 > Permission denied (publickey) when deploying heroku code. fatal: The remote end hung up unexpectedly                                    34个
我是heroku的新手,我不能推动我的rails项目.

我可以成功登录到heroku,我有钥匙

Keys
 ssh-rsa AAAAB3NzaC...oPiDGoh0Gt root@Slava-System-Product-Name

但是当我git推送heroku master我收到了

Permission denied (publickey).
 fatal: The remote end hung up unexpectedly

解决方法

A common key error is: Permission denied (publickey). You can fix this by using keys:add to notify Heroku of your new key.

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

https://devcenter.heroku.com/articles/keys

更新,来自以下博客post解决方案有效.

>创建一个新的公钥

ssh-keygen -t rsa
>上传到heroku

heroku密钥:添加/root/.ssh/id_rsa.pub

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐