本文介绍了您的帐户example@email.com无权访问< app-name>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法将代码推送到heroku。我有一个帐户,但我忘记了密码。我创建了一个新帐户并尝试使用它,但是现在它向我显示了此错误:

 您的帐户someoneelse@gmail.com无法访问
! SSH密钥指纹:

如何使用新帐户登录?我想用新帐户删除此错误消息。我已将最新的ssh密钥上传到heroku。我已经尝试了所有在heroku上推送代码(基本设置),但我无法超越这个错误。






您帐户中的任何应用程序都有两个ssh密钥,您应该删除不在〜/ .ssh /文件夹中的一个或按照以下步骤操作。






  1. 转到www.heroku.com并使用引发错误的帐户登录。

  2. 转至应用程序设置。 (例如,对于名为rails-demo的应用程序,请转至rails-demo设置,并检查是否有两个ssh密钥)


  3. 不再存在于你的系统中


  4. 或者你可以删除它们,然后用这些命令生成一个新的。



    - > ssh-keygen -t rsa



    - > heroku keys:添加


  5. 上传新文件然后放入您的控制台类型中

    - > heroku登录


  6. 使用您的帐户登录,然后将其推送给您的应用程序。现在已经解决了。


解决方案

b $ b


  • 清理Heroku应用程序中您本地没有的额外ssh密钥(请参阅的)

  • 注册您的新帐户(如弃用) >
    使用与 heroku插件:安装heroku帐户

    heroku帐户:添加myNewAccount 然后是Heroku证书(电子邮件,密码)

  • 确保

     主机heroku.myNewAccount 
    HostName heroku.com
    IdentityFile〜/ .ssh / id_heroku_myNewAccount_rsa
    IdentitiesOnly yes

    然后更改远程'origin'url

      git remote set-url origin git@heroku.myNewAccount:< appname> .git 

    或者,如



      git remote set-url heroku git @ heroku。 myNewAccount:< appname> .git 

    最后一步将确保 git push 将使用您的新帐户,而不是旧帐户。



    更多信息请参见。






    如果您添加用户git,你可以删除凭证用户名' git ':

     主机heroku.myNewAccount 
    的用户的git
    主机名heroku.com
    IdentityFile的〜/ .ssh / id_heroku_myNewAccount_rsa
    IdentitiesOnly是

    这意味着您可以使用:

      git远程设置网址来源heroku.myNewAccount:< appname> .git 
    #或
    git remote set-url heroku heroku.myNewAccount:< appname> .git


    I am having trouble pushing code to heroku. I have an account but I've forgotten password. I created a new account and tried to push with it but now it shows me this error:

    Your account someoneelse@gmail.com does not have access to
    ! SSH Key Fingerprint:
    

    How can I log in with the new account? I'd like to remove this error message with a fresh account. I have uploaded my latest ssh key to heroku. I have tried everything to push code on heroku (basic setup), but I can't get past this error.


    Any application in your account has two ssh key and you should remove one which is not in your "~/.ssh/" folder or follow these steps.

    Here's the solution:

    1. Go to www.heroku.com and login with the account that raises the error.
    2. Go to the applications settings. (e.g. for an application named "rails-demo", go to rails-demo settings and check whether there are two ssh keys)

    3. Remove the key which is no longer in your system

    4. Or you can remove them both and then generate new one with these commands.

      -> ssh-keygen -t rsa

      -> heroku keys:add

    5. Upload the new one and then in your console type

      -> heroku log-in

    6. Log in with your account and then push it to you app.
    7. It's solved now.
    解决方案

    You need to:

    Make sure your ~/.ssh/config file has an 'myNewAccount' entry

    Host heroku.myNewAccount
      HostName heroku.com
      IdentityFile ~/.ssh/id_heroku_myNewAccount_rsa
      IdentitiesOnly yes
    

    And then change the remote 'origin' url:

    git remote set-url origin git@heroku.myNewAccount:<appname>.git
    

    Or, as Ian Vaughan comments below

    git remote set-url heroku git@heroku.myNewAccount:<appname>.git
    

    That last step will make sure the git push will use your new account, and not the old one.

    See more at "Multiple heroku accounts".


    If you add "User git" in your config file, you can remove the credential user name 'git':

    Host heroku.myNewAccount
      User git
      HostName heroku.com
      IdentityFile ~/.ssh/id_heroku_myNewAccount_rsa
      IdentitiesOnly yes
    

    That means you can use:

    git remote set-url origin heroku.myNewAccount:<appname>.git
    # or
    git remote set-url heroku heroku.myNewAccount:<appname>.git
    

    这篇关于您的帐户example@email.com无权访问&lt; app-name&gt;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-14 17:11