one SSH Key for two accounts

Oliver Kriška avatarOliver Kriška created an issue

I have two accounts. One account is for my firm's projects and next one is for my private projects. But I can not add SSH key from my macbook to my private account. Can I use one key for two accounts? It show me this error: Someone has already registered that SSH key.

Comments (5)

  1. Erik van Zijst

    I think you have already figured it out: you cannot share an SSH key across multiple accounts.

    The reason behind this is that when you use SSH, your key identifies which bitbucket account you authenticate as (and in turn, whether you have the required privileges to access the repo) and if your key were attached to more than one account, we wouldn't know who to authenticate as.

  2. Happily Coded

    Although I understand what Erik says, but it makes things difficult for me. I am part of two organizations at the same time, and both of them use BitBucket, and I have to commit code to both of them (at different times) from my same computer.

    I'll just check if I can have the already approved user (from the other firm) added in the other firm and get pushes working.

    Still not sure if both the organizations will be happy with this.

    Would be more than happy if you allow us to use one key for multiple accounts

  3. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.