Search code examples
gitlabssh-keys

Fingerprint has already been taken gitlab


I formatted my Windows 7 laptop and in an attempt to have git setup working again, I installed git and source tree application.

I deleted the SSH Key from gitlab and regenerated the key using ssh-keygen. But when I try to add the SSH Key at gitlab, it throws the following exception :

Key is invalid
Fingerprint has already been taken
Fingerprint cannot be generated

Because of this I am unable to clone the git repository from the source tree application since gitlab is unable to authenticate the SSH key.I followed queries at google groups of gitlab but none of them seem to resolve my issue. Is there any workaround or steps to get the SSH key accepted by gitlab?


Solution

  • Make sure to cut away everything at the end of the base64 encoded string. Also remove all newlines so the string contains no newlines.

    This did the trick for me.