I often need to switch hero accounts and use a script that 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: fake@gmail.com 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 not get through this error.
any help is much appreciated.
source share