

MacOS: Copy the output to the clipboard with this command: $ pbcopy Windows: Open your ~/.ssh/ file and copy its contents. If you have any existing keys, those appear on this page. On the SSH keys page, copy the contents of your public key file. On the Account settings page, click SSH keys. If you have an account that you access from two different locations, add both keys to that account.įrom Bitbucket, choose Personal settings from your avatar in the lower left. Add the public key to your Account settingsĪdd each public SSH key into the corresponding account. Make sure you're adding it to the right account. Your public key has been saved in /Users//.ssh/.pub.ħa:9c:b2:9c:8e:4e:f4:af:de:70:77:b9:52:fd:44:97 Īdd your new SSH key to your account. Your identification has been saved in /Users//.ssh/.

It won't work in the Command prompt.Įnter passphrase (empty for no passphrase): You can only enter ssh-keygen into the Git Bash window. In place of, enter the username of the Bitbucket account for which you're creating the SSH key. For example, if you have four Bitbucket accounts, you need to generate 3 new SSH keys, meaning you'll have 4 keys in all. You'll need to create an additional SSH key for each extra Bitbucket account you have or each computer you use.
Add oauth for github mac sourcetree update#
Update the remote URL with your Bitbucket username by replacing with For this step and the ones that follow, enter your username in place of. When using Git, you can use this section to create as many SSH keys as you need on Windows, macOS, or Linux.

This one SSH key is your default identity because it's the key that Bitbucket checks first when authenticating. If you don't have an SSH key, follow the steps on Set up an SSH key. By this point, you should have already created at least one SSH key.
