Sometimes ago I got this issue and tried to follow the instruction for my PC.
Cannot push to git repository on bitbucket
It worked, and I already have one SSH key with bitbucket.
Now I have another machine with a new hard drive, so I need to setup git again. I thought I could just add the global config:
git config --global user.name '<myname>'
git config --global user.email '<myemail>'
But it doesn't work. So it seems like I need to go through the steps mentioned in the above link all over again.
Is there a better way to setup that SSH access from an existing account (jsut from a differ machine) rather than following such a long and mundane steps.