GitHub distributes a simplified Git client for Windows they call GitHub for Windows; it authenticates via GitHub account, and although it usually uses HTTPS remotes for local repositories it creates, if you tell it to use an existing local repository that has an SSH remote on GitHub, it will use your GitHub credentials to set up an SSH key on the GitHub account for itself. But where does it keep the SSH key in the filesystem?
SSH keys are stored in the ~/. ssh folder. You can have more than one key in there, because SSH keys are used for things other than Git.
The public part of the key is saved in the id_rsa. pub file, while the private part is saved in the id_rsa file. Both files can be accessed from this location using Explorer: C:\Users\[your user name]\. ssh .
Once your key is open, you want to select Conversions -> Export OpenSSH key and save it to HOME\. ssh\id_rsa . After you have the key at that location, Git Bash will recognize the key and use it.
%HOMEDRIVE%%HOMEPATH%\.ssh\id_rsa.pub
is where the key is.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With