Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't manage to load my private key with git extension

I've been trying for the last 2 hours. I'm using xp-dev as a git repository provider (because I'm already paying and I have svn repo over there) I've given xp-dev my public key.

But when cloning my repo I a being rejected.

"C:\Program Files (x86)\Git\bin\git.exe" clone -v --recurse-submodules --progress "ssh://xp-dev.com/repogit" "c:/ProjetPerso/repogit"
Cloning into 'c:/ProjetPerso/repogit'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Done

And from what I understood from various blogs, git extension should ask me to load my private key, except it doesn't.

I tried launching the putty authentification client (even though I choose openSSH) and loaded my private key inside, but it changes nothing.

Any ideas?

Thanks.

like image 210
sliders_alpha Avatar asked Mar 23 '13 07:03

sliders_alpha


1 Answers

I had this issue because I generated a SSH key with ssh-keygen and tried to use it with GitExtensions which only understands OpenSSH keys.

What you have to do is, from GitExtensions:

  • Tools > Putty > Generate or import key (A new window opens)
  • Conversions > Import key
  • Import your private key
  • Save private key
  • Type a file name like mykey.ppk

You should now able to use this new .ppk file in GitExtensions!

like image 118
Sovattha Sok Avatar answered Sep 29 '22 11:09

Sovattha Sok