Description: Semi-organized collection of thoughts, notes and anything else I feel like writing about
At times, I have to switch between a few different Heroku accounts. Apart from having to login again, the other annoyance is having the right SSH key active. If you don’t have the right SSH key active, (i.e. if the SSH auth agent has more than one key added to it, or if it has no keys at all), you’ll see errors that look like:
Your key with fingerprint: ... is not authorized to access <application-name> . fatal: the remote end hung up unexpectedly The proper solution for this involves configuring them in the SSH configuration files ( ~/.ssh/config or /etc/ssh/ssh_config ). [See this article or ssh_config manpage for details]
But I’m loath to maintain all that configuration just for the sake of occasionally switching between accounts. Here’s what I usually do instead: