Install The Public Key On Your Bitbucket Account

  • Open a browser and log into Bitbucket.
  • Choose avatar > Manage Account from the application menu.
    The system displays the Account settings page.
  • Click SSH keys.
    The SSH Keys page displays. It shows a list of any existing keys. Then, below that, a dialog for labeling and entering a new key.
  • Back in your terminal window, copy the contents of your public key file.
    For example, in Linux you can cat the contents.
    cat ~/.ssh/id_rsa.pub
            
    

    In Mac OSX the following command copies the output to the clipboard:

    pbcopy < ~/.ssh/id_rsa.pub
            
    
  • Back in your browser, enter a Label for your new key, for example, Default public key.
  • Paste the copied public key into the SSH Key field:
  • Press Add key.

    1. The system adds the key to your account. Bitbucket sends you an email to confirm addition of the key.