我想推送到heroku,但我得到一个权限被拒绝的错误。我已经按照从这些位置的文章:Heroku密钥不被接受
https://devcenter.heroku.com/articles/keys
Permission denied (publickey) when deploying heroku code. fatal: The remote end hung up unexpectedly
但那些不工作了。
这里是从外壳输出显示我想要做的事:
[root]# heroku keys
You have no keys.
[root]# heroku login
Enter your Heroku credentials.
Email: [email protected]
Password (typing will be hidden):
Found the following SSH public keys:
1) github.pub
2) heroku.pub
Which would you like to use with your Heroku account? 2
Uploading SSH public key /root/.ssh/heroku.pub... done
Authentication successful.
[root]# git init
Reinitialized existing Git repository in /.git/
[root]# git push heroku master
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
编辑:这是一个CentOS的服务器。
你在Mac上吗?你是否在使用像'ssh-agent'这样的密钥管理器? – redhotvengeance 2012-07-11 20:28:09
我在Mac上,但这是在CentOS服务器上。 – Peter 2012-07-11 20:32:27
即使还在使用'ssh-agent'吗? – redhotvengeance 2012-07-11 21:14:57