Three Questions Around SSH Key

adam kolbo
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!
August 2, 2018

1. I have successfully added an SSH key in github, can I use the same ssh key "id_rsa" and "id_rsa.pub" in bitbucket?

 

2. Do I need to include the "-----BEGIN RSA PRIVATE KEY-----" at the beginning and "-----END RSA PRIVATE KEY-----" at the end of the ssh key?

 

3. Do I also need the "host address", and where do you find it on a mac?

1 answer

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 6, 2018

Hi Adam, welcome to the Community :) 

In response to your questions:

1. Yes, you can use the same SSH key for different service, but note that if you're already using that key for a Bitbucket account, you won't be able to use it again for another Bitbucket account. 

2. My SSH keys look different (they don't include that text), but I'd try removing the "-----BEGIN RSA PRIVATE KEY-----" and "-----END RSA PRIVATE KEY-----" and see if Bitucket takes it.

3. You won't need the host address to set up your SSH key in Bitbucket, unless you're using it for Pipelines. For more information, you can read Set up an SSH key and Use SSH keys in Bitbucket Pipelines. You can find it under System Preferences > Network.

Hope that helps!

Ana

adam kolbo
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!
August 6, 2018

Thank you, I'll try it again :)

jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 6, 2018

Please do not ever share your private key. That makes it useless. If you're setting up an SSH key in Pipelines to push or pull code from elsewhere, then please use the built-in SSH key generator there.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events