如何删除heroku中的以前帐户

时间:2013-10-09 19:29:13

标签: heroku heroku-toolbelt

我必须将heroku帐户从一个切换到另一个。我尝试使用heroku登录。但是当我尝试使用命令部署我的应用程序时

git push heroku master

但我收到错误

Agent admitted failure to sign using the key.

 !  Your account ritesh@iritesh.com does not have access to young-plains-9347.
 !  
 !  SSH Key Fingerprint: 3f:bf:62:23:04:b3:7a:ff:a8:15:59:43:37:c0:4d:6e

fatal: The remote end hung up unexpectedly

其中ritesh @iritesh.com是我以前的帐户。如何摆脱这个错误?请指导。

4 个答案:

答案 0 :(得分:1)

您可以使用Heroku accounts在多个Heroku帐户之间切换。有关详细信息,另请参阅Dev Center article

答案 1 :(得分:1)

#list of accounts
heroku accounts

#Remove a account
heroku accounts:remove personal

#Set a new account # in project root
heroku accounts:set personal

#Set machine wide default account
heroku accounts:default personal

答案 2 :(得分:1)

经过4个小时的挣扎,我明白了。

只需删除以前的帐户,

  1. 完全卸载Herouku toolbelt。
  2. https://devcenter.heroku.com/articles/heroku-command#uninstalling-the-heroku-cli

    1. 重新启动计算机
    2. 重新安装
    3. 在终端
    4. 中登录heroku
    5. 按照Heroku指南创建ssh。
    6. 完成!这只是删除以前的帐户。

答案 3 :(得分:0)

要删除以前的帐户,您应该从命令行注销:

heroku logout

并再次登录以添加新帐户:

heroku login

您可以通过安装 heroku accounts package

来管理 heroku 的多个帐户
相关问题