How to Manage Multiple SSH Keys for GitHub, GitLab, etc.
Short tutorial on how to structure projects and setup multi-user Git SSH workflow.
When using a single machine with multiple git accounts, you might encounter some obstacles with SSH setup. The easiest way to achieve a multi-user setup is to structure git repositories by respective directories, e.g.:
This short tutorial will help you set up SHH for such workflow.
Generating a new SSH key
To generate a new SSH key, use the provided template script (or check the docs):
Multi-user Git SSH setup
And that’s it! Appropriate SSH setup will be used based on directory location, no extra actions are needed.