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

を試してみましたので、私はドン、トン、私にマイナスを与えません何をすべきかを知る...

+0

私の回答があなたの問題を解決しましたか? – danihp

答えて

28

あなたの鍵に問題があります。おそらく、あなたは「あなたのSSHキーの管理」で、彼Herokuの

heroku keys:add 

の詳細にあなたの現在の鍵をアップロードする必要があります。このリンクでhttps://devcenter.heroku.com/articles/keys

+2

これはうまくいった!ありがとうございました!これを少なくとも2時間修正しようとしていました。私はgitとheroku toolbeltを再インストールし、heroku loginをやり直してみました...なぜそれがちょうどうまくいかなかったのか分かりません。 –

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 

。その後、

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

ワークスペースへ

->heroku keys:add "id_rsa.pub" 

ディレクトリを変更するには、あなたが上記の設定パスフレーズを使用してください。

関連する問題