尝试像其他许多人一样,让我的应用程序推送到Heroku,但不断收到此错误
$ heroku login
Enter your Heroku credentials.
Email: my@email.com
Password (typing will be hidden):
Found existing public key: /Users/scotty/.ssh/id_rsa.pub
Uploading SSH public key /Users/scotty/.ssh/id_rsa.pub... done
Authentication successful.
$ git push heroku master
! Your key with fingerprint xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx is not authorized to access todolist.
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)
我完成了Heroku页面上的所有步骤,我在这些类似的问题中尝试了大多数建议的修复:
您的指纹密钥....无权访问... myapp.远程端意外挂断了.HEROKU,GIT CLONE
当我尝试将最新更改推送到Heroku时,为什么我的密钥没有授权指纹?
我为heroku添加了一个新密钥,尝试使用ssh-add -D命令删除所有密钥,从Heroku中删除所有密钥,无论我尝试什么,我仍然会得到同样的错误.
我只有一个Heroku帐户,因此多帐户问题不是问题.我现在只有一个ssh密钥,我在macbook上用于github.
有人在上面的答案中没有提到任何建议吗?
提前致谢.
生成一个新密钥:
ssh-keygen -t rsa -f ~/.ssh/id_rsa_heroku
Run Code Online (Sandbox Code Playgroud)
将其添加到您当地的ssh代理:
ssh-add ~/.ssh/id_rsa_heroku
Run Code Online (Sandbox Code Playgroud)
确保新密钥显示在ssh-agent中:
ssh-add -l
Run Code Online (Sandbox Code Playgroud)
使用-d标志删除不必要的键.(这不会删除密钥,只能从ssh-agent中删除它.)
ssh-add -d /Users/Niko/.ssh/id_rsa_hellonico
Run Code Online (Sandbox Code Playgroud)
将ssh密钥添加到您的帐户:
https://dashboard.heroku.com/account
准备推送到heroku
git push heroku master
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
1914 次 |
最近记录: |