我是heroku的新手,我无法推动我的rails项目。
我可以成功登录heroku,并且我有密钥
 Keys
 ssh-rsa AAAAB3NzaC...oPiDGoh0Gt root@Slava-System-Product-Name
但是当git push heroku master我收到
 Permission denied (publickey).
 fatal: The remote end hung up unexpectedly
    我是heroku的新手,我无法推动我的rails项目。
我可以成功登录heroku,并且我有密钥
 Keys
 ssh-rsa AAAAB3NzaC...oPiDGoh0Gt root@Slava-System-Product-Name
但是当git push heroku master我收到
 Permission denied (publickey).
 fatal: The remote end hung up unexpectedly
    一个常见的密钥错误是:权限被拒绝(公钥)。你可以使用 keys:add 来解决这个问题,通知 Heroku 你的新密钥。
heroku keys:add ~/.ssh/id_rsa.pub
https://devcenter.heroku.com/articles/keys
更新,来自以下博客文章的解决方案有效。
创建一个新的公钥
ssh-keygen -t rsa
上传到heroku
heroku 键:添加 /root/.ssh/id_rsa.pub