Andi
Andi

Reputation: 63

Unable to use key file "C:\GIT\HOME\.ssh\id_rsa" (OpenSSH SSH-2 private key (new format))

I'm trying to make a GitClone from a Gitlab repository. I have generated a ssh key with the command ssh-keygen on my cmd: enter image description here

Then i added my pub key (starting with ssh_rsa) to my Gitlab account, but whenever i try to make a gitclone, i have the following error: enter image description here

Any advices? I tried to convert my key with puttygen, but still doesn't work! The start of my pub key is ssh-rsa key.. And the private key: --BEGIN OPENSSH PRIVATE KEY-- ..key.. --END OPENSSH PRIVATE KEY--

Output of ssh -v git@gitlab.(..).com enter image description here

Upvotes: 0

Views: 3252

Answers (1)

Andi
Andi

Reputation: 63

OK. i Solved the problem. Since i was using TortoiseGit to make a GitClone, this last one doesn't accepts Openssh key. Therefore, once you generate the key, you need to convert it in putty format with Puttygen. Moreover, you must pay attention to the version of the new generated key and you can change the version on puttygen on key>parameters to save key!

Upvotes: 0

Related Questions