SSH key per repo
Bitbucket is a good git hosting service especially when they let you create unlimited private repos for free.However bitbucket doesnt let you use the same ssh key with two different users.Now you might be thinking why the hell does he need two different ssh keys.My answer to that is “I wanted to keep my personal and private account seperate”
I am across this post on stackoverflow.It pretty much solved my issue.All I had to do was change my ~/.ssh/config file to this..
Host github1 HostName github.com User git IdentityFile ~/.ssh/id_repo1 Host github2 HostName github.com User git IdentityFile ~/.ssh/id_repo2
You will also have to update the git remote url for the repos.
<code>git remote set-url origin github1:user/repo1 </code>