Problem is, Bitbucket doesn’t allow you to use the same SSH key with more than one Bitbucket account, and here is the Quick Tips to manage it.
Using the SSH protocol, you can connect and authenticate to remote servers and services. With SSH keys, you can connect to GitHub without supplying your username or password at each visit.
When you have multiple identity files, consider creating an SSH config file to create aliases for your various identities. You can construct a SSH config file using many parameters and different approaches. The format for the alias entries used in this example is:
To create a config file for two identities (worked and personalid), you would do the following:
To use multiple keys create a file at C:\Users\< Current User >\.ssh\config with contents similar to:
With this set up I can clone with my default key as Bitbucket suggests:
Example : Git clone email@example.com:username/project.git
This below repository is contains Second Git Account
Example : Git clone firstname.lastname@example.org:username/project_demo.git
Just change host bitbucket.org of second git repository URL :
Syntax : Git clone git@bitbucket_< Name of Second ~/ssh/.pub file >:username/project_demo.git
Example : Git clone git@bitbucket_accountB:username/project_demo.git