我想推送到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