Add the public key to your Bitbucket settings From Sourcetree, open the PuTTY Key Generator dialog by going to Tools Create or Import SSH Keys. Click Load, navigate to your SSH folder, and click the private key. Enter your passphrase for the SSH key and click OK. Copy the public key. Sep 26, 2019 Generating an SSH key. To generate an SSH key with PuTTYgen, follow these steps: Open the PuTTYgen program. For Type of key to generate, select SSH-2 RSA. Click the Generate button. Move your mouse in the area below the progress bar. When the progress bar is full, PuTTYgen generates your key pair. Type a passphrase in the Key passphrase field.
- Bitbucket Ssh Setup
- Bitbucket Add Ssh Key Windows
- Generate Ssh Key Windows Git Bitbucket
- Bitbucket Add Public Key
What does SSH Keys do in Github / Bitbucket?
Set up SSH to reduce the risk of exposing your username and password.Some reasons you might want to use SSH key base authentication:
- Is more effective if you push and pull from Bitbucket many times a day.
- Removes the need to enter a password each time you connect.
Url formats of the repository differs from
HTTPS
to SSH
:Environment
- Operating System : Ubuntu 16.04 LTS (64-bit)
Add SSH Keys in Ubuntu 16.04
The following steps showed the step by step installation guideline.
Set up your default identity
From the terminal, enter
ssh-keygen
at the command line.The command prompts you for a file to save the key in:It will create two files; one public key file and one private key file.Both file will have your given name.
Add Key files in local machine
Keep both of the files in
~/.ssh
location.Add the public key to your bitbucket settings
Bitbucket Ssh Setup
- In Bitbucket go to
Bitbucket settings>Account settings>SSH keys>Add key
- Copy the contents of your public key file using the following command:
N.B.:
id_rsa
is the name I have given when generating the key files. It might be something else for your case.3. Copy and paste the public key in the key
field in Bitbucket and include proper label. Click Save
.Bitbucket Add Ssh Key Windows
Ensure Bitbucket SSH connects successfully
Return to the terminal window and write:
For github
Give your passphrase which you have given when generating the key files.If your connection is successful then you will get output like following:
Generate Ssh Key Windows Git Bitbucket
For Github:
References
Bitbucket Add Public Key
- Set up an SSH key: Bitbucket documentation
- Change existing folder remote url: Github documentation