heroku toolbelt, multi account, heroku loginできない
http://stackoverflow.com/questions/8786564/cannot-push-to-heroku-because-key-fingerprint
multiple keys and multiple heroku accounts
the main problem is ssh-agent, which you control using the ssh-add command. The man page (man ssh-add) is actually pretty clear and concise, so check it out.
You can list all the keys that ssh-agent knows about with:
ssh-add -l
You can delete all the keys that ssh-agent knows about with:
ssh-add -D
Or delete a specific key with
ssh-add -d ~/.ssh/id_rsa_example_key_file_use_your_own
Don't worry! You aren't actually deleting the keys, only changing which ones ssh-agent automatically tries to use, for example, when you try to push to heroku. It's easy to add and delete keys as needed, so for me, when I get frustrated by this problem, the easiest way to fix it is to delete all the keys and add back in only the one I want to use at the moment.
ssh-add -D
ssh-add ~/.ssh/id_rsa_example_use_this_one_i_mean_it
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Heroku Toolbelt
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh