Trying to change Heroku command-line users to add add-ons for the user in our organization that has the credit card information associated with him (Bill).
My account info: anthony@example.com His account: bill@example.com
Can run this to clear out my current Heroku username and password:
rm ~/.heroku/credentials
But unfortunately even after I authenticate with the new username and password, things don’t quite work right:
$ heroku list
Enter your Heroku credentials.
Email: bill@example.com
Password:
Uploading ssh public key /Users/anthony/.ssh/id_rsa.pub
! Fingerprint already exists. Please use one ssh key per Heroku account
The problem is that the ssh key I’m trying to use is already associated with anthony@example.com’s account. So I need to generate a new one:
$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/anthony/.ssh/id_rsa): /Users/anthony/.ssh/bill_id_rsa
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/anthony/.ssh/bill_id_rsa.
Your public key has been saved in /Users/anthony/.ssh/bill_id_rsa.pub.
The key fingerprint is:
[snip] anthony@Anthonys-MacBook-Pro.local
The key's randomart image is:
[snip]
Then I can run:
$ heroku keys:add /Users/anthony/.ssh/bill_id_rsa.pub
Enter your Heroku credentials.
Email: bill@example.com
Password:
Uploading ssh public key /Users/anthony/.ssh/bill_id_rsa.pub