I'm following up with wiki here:
https://support.atlassian.com/bitbucket-cloud/docs/set-up-personal-ssh-keys-on-macos/.
At this step -
To ensure the correct SSH key is used when connecting to Bitbucket, update or create your SSH configuration file (~/.ssh/config) with the following settings:
1
2
3
Host bitbucket.org
AddKeysToAgent yes
IdentityFile ~/.ssh/{ssh-key-name}
I met this error:
zsh: command not found: AddKeysToAgent
zsh: command not found: IdentityFile
Hi @Yijun Hou
Thanks for reaching out to the community.
You can try adding the SSH key in the SSH agent using the ssh-add command.
You can find this KB for more information: Multiple SSH Keys settings for different Bitbucket Cloud Accounts
Regards,
Mark C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.