Reputation: 209
I need some help with GitLab as I am trying to add SSH keys. No matter the format I use it always shows the same message. In the past I have managed to add them by removing comment lines or the initial and last entries.
Current samples:
No matter how I clean it it keeps failing. Does anyone know how to pass this?
Upvotes: 1
Views: 2032
Reputation: 209
I must also say that following these instruction here did the trick for me before reading the answer above https://dev.to/sndrx/how-to-set-up-an-ssh-key-and-use-it-in-gitlab--42p1
I also tested the answer above and I found the same way. Thank you
Upvotes: 0
Reputation: 1323165
Try using ssh-keygen.exe which is part of Git for Windows:
ssh-keygen -t rsa -P "" -m PEM
That will override %USERPROFILE%\.ssh\id_rsa(.pub)
, and you can copy the public key, which should be valid and recognized by GitLab.
Upvotes: 2