How to Manage Multiple SSH Keys for GitHub, GitLab, etc.

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

The general idea is that you use specific ssh command based on your working directory with the help of git includes.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store