I\'m having trouble when working with multiple Heroku accounts on my computer.
The thing is that it\'s worked great before by switching accounts with the heroku gem.
This has been bugging me for a while, and I never found a solution that I liked. Finally found one.
(OS X specific answer.)
You can just create new users. Go to System Preferences -> Users & Groups -> Add user or group button. You can create a few users for different heroku accounts, I just named mine user1, user2, etc.
Then go to System Preferences -> Sharing -> Remote Login -> Allow access for: All Users
At this point, you can go to a terminal and do the following:
$ ssh user1@localhost
Then you can do things like this:
$ heroku login
$ heroku keys:add