Heroku Git - 致命:远程端意外挂断

Mas*_*345 14 git ssh rsa github

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

E:\Windows\system32>heroku login
Enter your Heroku credentials.
Email: mymail@yahoo.com
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 git@heroku.com: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>
Run Code Online (Sandbox Code Playgroud)

为什么我一直有这个错误?我该怎么办?并且不要给我一个减号,因为我已经看过了

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 "mymail@yahoo.com"

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 git@heroku.com: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>
Run Code Online (Sandbox Code Playgroud)

我也试过了

GitHub:权限被拒绝(publickey).致命:远程端意外挂断

我不知道该怎么办 ....

dan*_*era 29

你的钥匙似乎有问题.也许您需要将当前密钥上传到heroku

heroku keys:add
Run Code Online (Sandbox Code Playgroud)

"管理SSH密钥"的详细信息:https://devcenter.heroku.com/articles/keys

  • 这个有效!谢谢!一直试图解决这个问题至少两个小时.我尝试重新安装git和heroku toolbelt并再次进行heroku登录...不知道为什么那不可能只是工作. (2认同)