Gitosis and ssh keys - does the email address have anything to do with the git email address?

StackOverflow https://stackoverflow.com/questions/1325366

  •  19-09-2019
  •  | 
  •  

Question

I'm trying to set up gitosis on a server. I was just wondering one thing, my ssh key has my gmail address at the end, because I was originally using it for github. For this new project on the server I'm setting up, I want to use my email address for this organization when committing to git. Is it OK for me to use the same ssh key when setting it up in gitosis, or will I need to use a different ssh key generated on my account me@newserver?

Was it helpful?

Solution

Nope... the only thing that matters is that the private key matches with the user. The names and email just pair the SSH Key up with a user because you commit as git@your-domain.com.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top