SSH agent setup for multiple Bitbucket account

First of all, set up your SSH key both locally my-id-rsa

and also on the remote bitbucket web UI my-id-rsa.pub

For project aaaaa you just adding -aaaaa after the domain name

git clone git@bitbucket.org-aaaaa:minor_digital/my-project.git

Edit your config file reside in your home ~/.ssh/config folder.

Create new one if there is no any.

Note the the Host MUST match with your host in git command

Host bitbucket.org-aaaaa
Hostname bitbucket.org
User git
IdentityFile ~/.ssh/my-id-rsa
  1. @bitbucket.org-aaaaa in the git command
  2. Config file Host bitbucket.org-aaaaa

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store