1. Bitbucket
  2. Public Issue Tracker
  3. master
  4. Issues


Issue #2633 resolved

ssh keys appear to break if you change your username?

created an issue

Something I experienced. I did the following steps:

  • Created a new account "mcc111". Made a repository.

  • Pasted my ~/.ssh/id_rsa.pub as a new key on the account.

  • Realized my URLs would now all have "mcc111" in them, which looked silly, so I used the Account feature "change username" to change my name to runhello.

  • Opened a new terminal, did an hg clone ssh: / / hg@bitbucket.org/runhello/jumpcore

  • It did not work ("Permission denied (publickey)").

  • Went back to my account settings; deleted my public key; re-entered the exact same public key as if it were a new public key

  • Did the hg clone again; this time it worked.

I haven't investigated further, you might want to test to see if this can be replicated...

Comments (1)

  1. Mehmet Catalbas


    Existing SSH keys are automatically associated with new username when you change it. In your case, background task to update SSH keys didn't complete its job because of an error. We'll further investigate this to prevent it happening again.

  2. Log in to comment