mrmartis
mrmartis

Reputation: 95

Your key with fingerprint (...) is not authorized to access <yourapp>

I have two heroku accounts with two seperate applications. I am new at this but I think that the key is stuck to one account and isn't allowing me to open another. What do I do, how can I add the other account?

Upvotes: 8

Views: 4113

Answers (2)

Icicle
Icicle

Reputation: 1174

Steps to manage multiple Heroku accounts

Install the plugin from the following URL on your machine

https://github.com/ddollar/heroku-accounts

In case you run into the problem of finger print authorization issue then follow the below steps

We had similar problem today and resolved it with the following solution

  1. First add account using following command

    heroku accounts:add account_name --auto

    This command would generate separate public key which would be associated with this account so that it does not conflicts with other accounts.

  2. Next step is to create the application for the account using following command

    heroku create app_name --account account_name

  3. Final step is to push the application in the Heroku which is the area where you will experience the fingerprint issue.

    Open the config file in your .ssh folder wherein you will find following entry for your added account.

    Host heroku.account_name

    HostName heroku.com

    IdentityFile /home/icicle/.ssh/identity.heroku.account_name

    IdentitiesOnly yes

    Remove the existing Heroku repository remote and add the new using the following command

    Removing Heroku respository

    git remote rm heroku

    Add new Heroku respository

    git remote add heroku [email protected]_name:app_name.git

    Here heroku.account_name is the one which is added as Host in your ssh config file.

    Now try to push your application and it works.

Upvotes: 22

Ben Carlson
Ben Carlson

Reputation: 762

I kept getting an error while following Icicle's instructions:

'accounts:add' is not a heroku command.

So, building on Icicle's answer, you need to install the following plugin before running the commands:

https://github.com/ddollar/heroku-accounts

Upvotes: 0

Related Questions