2012-06-03 61 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 

使用您上面設置的密碼。

相關問題