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


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*

Suggest an answer

Log in or Join to answer
Community showcase
Jason Wong
Published yesterday in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

326 views 6 15
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot