views:

35

answers:

2

hey out there! 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.

A: 

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

mtin79
A: 

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

Andres