Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to install existing SSH Key into Sourcetree

Angelxoxo757
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 9, 2023

I installed Sourcetree onto my Mac computer for the first time. I used my login to log into the bitbucket cloud. When I finish logging into the system for Sourcetree, it said there is no ssh key but there is. How do I get my existing key to be implemented within the source tree because I do not want to create a new key. I went through the process of granting access for Sourcetree to use bit bucket and I thought i had everything transferred over including the SSH key. I am using Sourcetree version 4.2.1. (248) ... I will upload screenshots to give you a better understanding.

 

Screenshot 2023-02-09 at 1.42.09 PM.pngScreenshot 2023-02-09 at 1.42.39 PM.png

1 answer

1 vote
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 16, 2023

Hi,

I understand that you have an existing SSH key you want to use with sourcetree rather than be forced to generate a new one.   You can do this, although it tends to be more complex to setup than it would be to just allow sourcetree to generate its own.

That said, you can follow the steps in Set up personal SSH keys on macOS in order to add your SSH key to your host system and Bitbucket Cloud.  In my own example, I have added my key to my ~/id_rsa.pub file.

Screen Shot 2023-02-16 at 10.14.21 AM.png

I suspect that your Mac might not have this file in place, hence sourcetree is unaware of your SSH key

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events