加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-17 04:01:05 所属栏目:百科 来源:网络整理
导读:参见英文答案 Permission denied (publickey) when deploying heroku code. fatal: The remote end hung up unexpectedly????????????????????????????????????34个 我是heroku的新手,我不能推动我的rails项目. 我可以成功登录到heroku,我有钥匙 Keys ssh-rs
参见英文答案 > 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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读