Reputation: 151
I was having problems setting a sshkey for gitlab. It stopped working and it wouldnt work. Somehow its working now, I didnt modify anything I simply added got a new key and added it. Im trying to understand a few things though. (I already read the READMEs)
1.Does my user name and email in .gitconfig have to be exactly the same what they are in my Gitlab profile?
2.When I did ssh-keygen -t rsa -b 4096 -C "your_email"
and I forgot to change your_email
and It still worked. So whats the purpose adding my email in this part?
Upvotes: 0
Views: 100
Reputation: 3119
Its really just a "descriptive" comment - not really important except as a way to tell one key from another in a simple human readable way.
All options described here: https://linux.die.net/man/1/ssh-keygen
Similar question asked here as well: Should I use my personal email in my ssh public keys?
It's just one of those funny things that adding the -C
option with youremail is in the github docs for ssh-keygen but I'm not clear if it really matters or if github makes use of this comment field in any way - perhaps gitlab is in a similar boat.
Upvotes: 1