2012-06-03 62 views
14
Microsoft Windows [Version 6.1.7600] 
Copyright (c) 2009 Microsoft Corporation. All rights reserved. 

E:\Windows\system32>heroku login 
Enter your Heroku credentials. 
Email: [email protected] 
Password (typing will be hidden): 
Found existing public key: E:/Users/Stewie/.ssh/id_rsa.pub 
Uploading SSH public key E:/Users/Stewie/.ssh/id_rsa.pub... failed 
! Fingerprint already exists. Please use one SSH key per Heroku account 

E:\Windows\system32>git clone [email protected]:sharp-winter-5732.git -o heroku 
Cloning into 'sharp-winter-5732'... 

! Your key with fingerprint f2:a2:f9:4a:c4:16:5b:f1:5a:21:cb:d8:c4:d2:18:ef is 
not authorized to access sharp-winter-5732. 

fatal: The remote end hung up unexpectedly 

E:\Windows\system32> 

为什么我一直有这个错误?我该怎么办?不要给我一个减号,因为我已经看了Heroku Git - 致命:远端意外挂断

https://help.github.com/articles/set-up-git

,给我

E:\Windows\system32>git config --global user.name "Stewie" 

E:\Windows\system32>git config --global user.email "[email protected]" 

E:\Windows\system32>git config --global credential.helper cache 
warning: credential.helper has multiple values 
error: cannot overwrite multiple values with a single value 
Use a regexp, --add or --replace-all to change credential.helper. 

E:\Windows\system32>git config --global credential.helper 'cache --timeout=3600' 


E:\Windows\system32>git clone [email protected]:sharp-winter-5732.git -o heroku 
Cloning into 'sharp-winter-5732'... 

! Your key with fingerprint f2:a2:f9:4a:c4:16:5b:f1:5a:21:cb:d8:c4:d2:18:ef is 
not authorized to access sharp-winter-5732. 

fatal: The remote end hung up unexpectedly 

E:\Windows\system32> 

,我也尝试过

GitHub: Permission denied (publickey). fatal: The remote end hung up unexpectedly

我不,T知道该怎么做....

+0

我的答案是否解决了您的问题? – danihp

回答

28

看起来好像你的钥匙有问题。也许你需要在“管理您的SSH密钥”当前的关键上传到他的Heroku

heroku keys:add 

详情:https://devcenter.heroku.com/articles/keys

+2

omgg这工作!谢谢!一直试图解决这个问题至少两个小时。我试着重新安装git和heroku toolbelt,然后再次登录heroku登录...不知道为什么不能正常工作。 –

0

Permission denied (publickey) when deploying heroku code. fatal: The remote end hung up unexpectedly

在这个环节,我有同样的问题,下面的步骤为我工作:

->heroku login 
     [email protected] & password 
    ->cd C:\Users\yourusername\.ssh 
    ->ssh-keygen -t rsa -f id_rsa 

如果它要求任何密码不要使用空白,填写密码,但不要忘记它。

->heroku keys:add "id_rsa.pub" 

目录更改为工作区,然后

->git clone [email protected]:stark-dawn-1234.git -o heroku 

使用您上面设置的密码。

相关问题