Answer the question
In order to leave comments, you need to log in
How to set up multiple ssh keys for Github?
You need several keys from different accounts on the same machine. The plugging happened on the compilation of the config file. I found these options: Host home.github.com and Host github.com-home
So right? Are these both working?
How then to use it? How then to choose under which key to make commits? Can someone tell me how to set up so as not to screw up?
Answer the question
In order to leave comments, you need to log in
It is possible to register different keys for different hosts, yes. How to do this - Google will show a lot of manuals.
And you make commits from the user in the system, who actually makes these commits. Those. commits and connecting via SSH are not related in any way.
It's easier for you to have two users with different keys, and make these commits separately from different users.
But why?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question