我为Github添加了一个SSH密钥来提交我的代码。一切都运行得很完美。然后,我尝试使用以下步骤提交给Heroku,让我的应用程序上线:
[omrails]$heroku keys:add
# Found the following SSH public keys:
# 1) github_rsa.pub 2) id_rsa.pub
# Which would you like to use with your Heroku account? 2
# Uploading SSH public key /Users/jackburum/.ssh/id_rsa.pub... done
[omrails]$heroku create
# Creating calm-earth-1147... done, stack is cedar
# http://calm-earth-1147.herokuapp.com/ |
# git@heroku.com:calm-earth-1147.git
[omrails]$git push heroku master
# ! Your key with fingerprint *************** is not authorized to access omrails.
# fatal: The remote end hung up unexpectedly
然后我尝试清除Heroku键(heroku键:clear),然后再次添加这些键……无济于事。我还在Github中更改了我的SSH密钥,以查看这是否是问题所在。我可以做些什么不同的事情?
发布于 2013-04-02 20:07:34
现在,我会猜测' Heroku‘的来源指向一个不正确的Heroku应用程序。要解决此问题,请执行以下操作。
删除calm源- git remote rm heroku
heroku
- heroku
-1147- git remote add heroku git@heroku.com: calm-earth-1147.git
git remote -v
发布于 2013-03-30 23:56:48
我也很难使用SSH密钥,特别是因为我在Heroku上有多个帐户。然后我发现了这个https://github.com/ddollar/heroku-accounts,它能帮你在Heroku上使用多个账号。
https://stackoverflow.com/questions/15719998
复制相似问题