Tag Archives: invalid key

GitLab: Key is invalid, Fingerprint cannot be generated

When I try to copy my public key to GitLab, the following error appeared:

  • Key is invalid
  • Fingerprint cannot be generated

The reason is that there are carriage returns in the text. 

We can open the id_rsa.pub, and copy the key as a whole line, and then paste to the GitLab to solve this problem.