SSH agent setup for multiple Bitbucket account

tanut aran
Aug 23, 2022


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

and also on the remote bitbucket web UI


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

git clone

Edit config file

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

User git
IdentityFile ~/.ssh/my-id-rsa

What need to be matched

  1. in the git command
  2. Config file Host