2013-03-30 45 views
0

我在Github上添加了一个SSH密钥来提交我的代码。一切都很完美。然后我试图承诺的Heroku让我的应用程序使用活以下步骤:git push heroku master - 失败

[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/ | 
# [email protected]: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密钥,以查看是否有问题。我能做些什么不同?

+1

将通过http://计算器。 com/a/9149518/6309有帮助吗? – VonC

+0

检查'git remote -v'的输出 - 检查'heroku'的来源是否指向[email protected]:我猜想它可能不是。 –

回答

0

现在你的我会猜测'heroku'的起源指向一个不正确的Heroku应用程序。要解决此问题,请执行以下操作

  1. 取出heroku起源 - git remote rm heroku
  2. READD的heroku原点平静,地球1147应用程序指向 - git remote add heroku [email protected]: calm-earth-1147.git
  3. 确认它正确添加,git remote -v
1

我也苦于SSH密钥,特别是由于我在Heroku上的多个帐户。然后我找到了这个https://github.com/ddollar/heroku-accounts,它帮助您在Heroku上使用多个帐户,这是一项了不起的工作。