Add the public key to your Account settings Use your existing key or generate another key from the terminal.Įnter a passphrase for the SSH key in the Passphrase and Confirm Passphrase fields. If you've already generated an SSH key for this account from Sourcetree, the OPTION key won't do anything. Hold down the OPTION key on your keyboard to see the Generate Key button. If you do have an SSH key and you want to generate another key, you'll have to use the terminal because you can't use Sourcetree to create a second key.Ĭreating an SSH key looks something like this:įrom the Sourcetree menu, select Preferences.Ĭlick the Accounts tab, select the account where you want to add the SSH key and click Edit.Ĭhange the Protocol to SSH if it's not already selected. If you don't connect your account during set up, you can add it from the Accounts tab by selecting Preferences from the Sourcetree menu.įollow these steps if you don't already have an SSH key for an account. Refer to the Install Sourcetree page for more details. Install Sourcetree and add your Bitbucket account You'll need to use the command line if you want additional keys. When you create an SSH key with Sourcetree on macOS, you can only create one key. To change the key's contents, you need to delete and re-add the key. If you already have a repository that you cloned over HTTPS, change the remote URL for your repository to its SSH URL.Īfter you add a key, you can edit the key's Label but not the key itself. Now that you've got an SSH key set up, use the SSH URL the next time you clone a repository. Paste the copied public key into the SSH Key field.īitbucket sends you an email to confirm the addition of the key. If you've already added keys, you'll see them on this page.Įnter a Label for your new key, for example, Default public key. Select Personal Bitbucket settings from the Settings dropdown menu. Make sure you're looking at All files if you don't see your private key.Įnter your passphrase for the SSH key and click OK.įrom Bitbucket, select the Settings cog on the top navigation bar. Add the public key to your Account settingsįrom Sourcetree, open the PuTTY Key Generator dialog by going to Tools > Create or Import SSH Keys.Ĭlick Load, navigate to your SSH folder, and click the private key. Pageant shows your key in the running list. Navigate to the private key file you saved in Step 1 and click Open.Įnter the passphrase for your SSH key and click OK. Load your private key into Pageant to automatically authenticate so that you don't need to enter your passphrase.ĭouble-click the Pageant (PuTTY Authentication Agent) icon in your system tray to open the Pageant Key List dialog.Ĭlick the Add Key button to open the Select Private Key File dialog. Sourcetree comes with an SSH authentication agent called Pageant. From the save dialog, choose where to save your private key, name the file, and click Save. pub file extension, and click Save.Ĭlick Save private key. From the save dialog, choose where to save your public key, name the file with the. When SSH key generation is complete, you see the public key and a few other fields.Įnter a passphrase for your SSH key in the Key passphrase and Confirm passphrase fields.Ĭlick Save public key. If you don't connect your account during set up, click Remote to open the Remote repositories page and click Add an account.įrom Tools, select Create or Import SSH Keys.įrom the PuTTY Key Generator dialog, click the Generate button.Īs the SSH key generates, hover your mouse over the blank area in the dialog. Click No if you don't have one and want to use Sourcetree to create one.Īdd your account and select SSH as the Preferred Protocol. You may see the Load SSH Key? dialog after installation. If you don't yet have Sourcetree, go to and click the Download free button.Ĭlick the. Set up SSH with Sourcetree on Windows Step 1. You may want to create an SSH directory when you do, so that you can refer to your SSH keys whenever you need them. Use this page to generate an SSH key using Sourcetree. When you create an SSH key with Sourcetree, you can save the public and private key wherever you want locally.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |