mcloud79
mcloud79

Reputation: 328

ssh key fingerprint error when trying to switch heroku accounts

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.

Upvotes: 4

Views: 3265

Answers (3)

Ganesh
Ganesh

Reputation: 21

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/

Upvotes: 2

Andres
Andres

Reputation: 41

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

Upvotes: 4

mcloud79
mcloud79

Reputation: 328

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

Upvotes: 0

Related Questions