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

Connect Gitlab

kevin Patricio Guaña Tul June 20, 2016

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

0 votes
kevin Patricio Guaña Tul June 30, 2016

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*

indieweb September 12, 2018

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...

0 votes
tonka June 20, 2016

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

kevin Patricio Guaña Tul June 20, 2016

Hi i need create the directory  ~/.ssh ?

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

 

tonka June 20, 2016

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events