How to install a public key on your Bitbucket Cloud account

If you don't know what SSH and public keys are, you should read Use the SSH protocol with Bitbucket Cloud.  Otherwise, choose the instructions appropriate for your situation:

Was this helpful?

Thanks for your feedback!

Why was this unhelpful?

8 Archived comments

  1. User avatar


    someone new to this is going to copy/paste that RSA block into their account and get screwed royally.. can't the comment be deleted?

    25 Jul 2013
    1. User avatar


      Odd, didn't come over in the auto notifications. This is deleted. Thanks for your comment, which did come over.

      25 Jul 2013
    1. User avatar


      like an idiot I followed Anthonys directions to the letter and got screwed..what text are you SUPPOSED to put in for Add Key?

      05 Sep 2013
  2. User avatar


    I guess I also followed these directions to the letter.  It's good that you've removed the bad advice, but now I don't know what I did or why it is bad.  "Screwed royally" doesn't sound good... 

    To be clear I can use the bitbucket website to participate in my project, but I'd rather use Mercurial.  But when I type

    $hg pull

    I am prompted for a password, which I no longer have.  Should I delete this key in the Passwords and Keys menu (on Ubuntu)? 

    Thanks for your advice. 

    07 Dec 2013
  3. User avatar


    Key begins form "ssh-rsa" and ends to "==". It is what You should paste into editbox.
    25 Feb 2014
    1. User avatar

      Marcus Bertrand [Atlassian]

      Please don't try to copy/paste just that portion. Paste the entire contents of the .pub file. We automatically will strip out everything after the ==.

      25 Feb 2014
  4. User avatar

    Leonardo Fuzeto

    I have a question about GIT + Bitbucket .... Saving the password is not git? Because every time I do a "git pull / git fetch / git push" is prompted for the password ... How to solve this? *Sorry for my english*

    08 Jun 2014
    1. User avatar

      Dan Stevens [Atlassian]

      Good day Leonardo,

      If you look at the Set up Git -- deprecated section the second step for either Windows or Mac is how to install a credential helper which will pass your credentials for you when ever you take an action in Git. (smile) 

      Hope this helps. 


      09 Jun 2014
Powered by Confluence and Scroll Viewport