Dofs
Dofs

Reputation: 19197

Multiple repositories on github

I am completely new to GitHub, and I have added two private repositories. One I work on myself, and the second one, we are multiple people working on.

I don't know if I should add multiple SSH-keys, one for each?

I have tried to create two keys, but it seems like it always want to look for the key in /c/Users/{myusername}/.ssh/id_rsa. This means it works fine for the first repository, but not for the second.

What might I be missing?

Upvotes: 3

Views: 359

Answers (1)

deveck
deveck

Reputation: 66

In general you create a single key pair and use the same public key for multiple repositories.
This is not a bad thing!

If you have any reason to use multiple keys you can set it up as described here: Multiple SSH Keys

Upvotes: 5

Related Questions