xxxxxxxxxx
ssh-keygen -o -t rsa -b 4096 -C "mail" -f ~/.ssh/id_rsa_bitbucket
nano ~/.ssh/config
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa
Host bitbucket.org
HostName bitbucket.org
User git
IdentityFile ~/.ssh/id_rsa_bitbucket
//for commits for this local project
cd /path/to/your/bitbucket/repository
git config user.name "Your Bitbucket Username"
git config user.email "your-bitbucket-email@example.com"
ssh -T git@bitbucket.org
Ensure it shows a successful authentication message.