尝试切换heroku帐户时ssh密钥指纹错误

发布于 2024-09-07 01:34:25 字数 541 浏览 4 评论 0原文

我经常需要切换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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

情感失落者 2024-09-14 01:34:25

删除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!!

我的影子我的梦 2024-09-14 01:34:25

不要对多个帐户使用相同的 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/

寄居人 2024-09-14 01:34:25

奇怪的是我可以用以下方法解决这个问题:
清除密钥、删除凭据、切换到其他帐户并再次返回。

strangely enough i could solve the problem with:
clearing the keys, deleting credentials switching to other accounts and back again.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文