Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Hi People , I have  a user with gitlab account i have created the key rsa with puttygen and I have added the public key in gitlab but qhen I try connect gitlab with sourcetree...ireceived the error(using openssh)

 

Can you help me please ?

2 answers

Hey,

Do you store the private Key as id_rsa in die ~/.ssh directory?

Do you use other hoster like github on the same machine?

 

Greetings tonka

Hi i need create the directory  ~/.ssh ?

and i dont know the secod question sorry i dont know about this iusse sad

 

Yes, you should create ~/.ssh if it does not exist. Copy your private key with the name id_rsa into this directory.

I see that you use puttygen to create your ssh key pair, so i think you have to convert it to a openssh key before.

You could also use plink/pagent with your puttygen key instead of openssh (which as far as i know is the recommended way on windows for SourceTree). You can set your putty private key in the settings of sourcetree (i think it is on the first tab). Close pagent (look in your taskbar) and then restart source. If you have a correct setup you can double-click on pagent - there should be a line with your key in it - if it is empty, your config in sourcetree for your pagent key is not set/not correct.

 

forget my second question because if you have no ~/.ssh the question is no relavant.

Hi sorry it not works......

1_ I have the gitlab account 

2_ Installed source tree and puttygen in my windows

3_ I have created a new public key with puttygen

4_ i have added to GitLab

5_in Source tree i go to tools , options ,and selected the key in "ssh Key" with the option Openssh

6_the key iy save in C:/users/kguana/.ssh/

7_To try Clone aany project of Gitlab i receive this error:

 

The OpenSSH agent is running but the server still rejected your connection.You may need to add the correct key to your agent by selecting Tools > Add SSH Key.

PLease note that manually logging in with a username and password is note supported via OpenSSH.Please switch to HTTPS URL or change the SSH cient option to PuTTY/PLINK inTools > options

 

*I need use the option Openssh*

I think @tonka is right - you need to convert the Putty key to an OpenSSH key.

  • Open PuTTYgen
  • Click Load
  • Locate + select your private key
  • Click Conversions > Export OpenSSH key
  • Save to C:\Users\yourusername\.ssh\id_rsa

This worked for me...

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

3,402 views 4 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you