Windows 10 generate ssh key for git

broken image
broken image
broken image

When cloning a repository from GitHub, instead of using the normal address like we should instead use will automatically tell GIT we want to use the work SSH key for this repository.Let me explain what these three examples do: If the file does not exist, we can create an empty config.txt file and remove the extension.įollowing, we proceed to create our entries for configuring which key we want to use in which case. ssh folder there must be a config text file (yes, without extension). These keys are all located under C:\Users\\.ssh. For the personal one, we will prepend personal_. Therefore we name our work SSH key using the default name. In this case, by default we want to use our work SSH key. id_rsa and id_rsa.pub (name of default key).Setupįirst, let us assume that we already have at least two different SSH keys. However, we need a small setup first, so let us get to it.

broken image

On Windows, there is fortunately an easy way to specify which key we want to use. When using the same computer for different purposes, it is likely that we want to use different SSH keys.įor example, we may want to push to GitHub or GitLab with a specific SSH key using our work key whereas on other repositories we may want to use our personal key.

broken image