Skip to content

Instantly share code, notes, and snippets.

@jbro-io
Last active March 18, 2021 03:24
Show Gist options
  • Save jbro-io/a8bbe7d6919adeb31e0681e01458fb02 to your computer and use it in GitHub Desktop.
Save jbro-io/a8bbe7d6919adeb31e0681e01458fb02 to your computer and use it in GitHub Desktop.
multiple-bitbucket-ssh-accounts

1. Edit ~/.ssh/config

Host bitbucket.org-yourusername
    HostName bitbucket.org
    User yourusername
    IdentityFile ~/.ssh/yoursshkey
    IdentitiesOnly yes

2. Clone Repo

git clone yourusername@bitbucket.org:company/app.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment