尝试切换heroku帐户时ssh密钥指纹错误
我经常需要切换heroku帐户并使用执行以下操作的脚本:
heroku keys:clear && rm ~/.heroku/credentials && heroku list
之后我需要输入我想要切换到的帐户的凭据:
Enter your Heroku credentials.
Email: [email protected]
Password:
Uploading ssh public key /Users/fake/.ssh/id_rsa.pub
! Fingerprint already exists. Please use one ssh key per Heroku account
不幸的是我无法通过此错误。
非常感谢任何帮助。
i often need to switch heroku accounts and use a script which does the following:
heroku keys:clear && rm ~/.heroku/credentials && heroku list
after which i need to enter my credentials for the account i want to switch to:
Enter your Heroku credentials.
Email: [email protected]
Password:
Uploading ssh public key /Users/fake/.ssh/id_rsa.pub
! Fingerprint already exists. Please use one ssh key per Heroku account
unfortunatelly i can´t get passed this error.
any help much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
删除heroku凭据
rm ~/.heroku/credentials
然后手动上传密钥
heroku keys:add ~/.ssh/otheraccount.pub
输入您的 Heroku 凭据即可!
remove the heroku credentials
rm ~/.heroku/credentials
And then upload the key manually
heroku keys:add ~/.ssh/otheraccount.pub
Enter your Heroku credentials and thats it!!
不要对多个帐户使用相同的 ssh 密钥。请为一个帐户使用一个 ssh 密钥。
有关解决此问题的更多信息,您可以参考 http:// /martyhaught.com/articles/2010/12/14/managing-multiple-heroku-accounts/
Dont use the same ssh key for mutiple accounts. Please use one ssh key for one account.
For more info to fix this problem you can refer to http://martyhaught.com/articles/2010/12/14/managing-multiple-heroku-accounts/
奇怪的是我可以用以下方法解决这个问题:
清除密钥、删除凭据、切换到其他帐户并再次返回。
strangely enough i could solve the problem with:
clearing the keys, deleting credentials switching to other accounts and back again.