New installation of Windows configuring git-bash

I recently formatted my laptop. I am on a Windows 10 machine. I have had taken ssh keys backup long time back. The keys were created on Linux virtual machine. which directory should ssh keys be put for gitbash to work correctly. In the new laptop I downloaded my previous ssh keys from google drive, the keys are in following location

C:\Users\koidera\arbit_user\downloaded software\git\git keys

There are two keys one is and another is

C:\Users\koidera\arbit_user\downloaded software\git\git keys\private key


Now I installed gitbash.


So now I want to know where should I place the private key and public key to make them work with my account. I have not configured the username and password section which was previously configured. I have forgotten all the things how I did it that time. But assuming I google and do that initial configuration for username password of that account. I am not able to understand where should I put my ssh keys to work in this Windows 10 environment.

I have checked many folders in Gitbash installation directory I found one


But this does not seem to be correct location to me. (I may be wrong). Currently
I have to begin to configure this account on my laptop,
later on I want to configure multiple github accounts for multiple projects. So I just wanted to know where should I put my keys both public and private. I don’t want to do a global git configuration just for specific project specific username and key based authentication.
So I want to every thing systematically.

For a different project folder in my windows OS a different username in same laptop is what I want to achieve and all this based on ssh keys. Since this is a fresh Windows installation so I want to do every thing fresh.
I forgot how I had configured previously.

If you’re using Git for Windows, I think it’s probably a lot easier to use HTTPS for your repositories. The first time you try to push something, a Window will appear asking you to log into GitHub. Windows Credentials Manager will then remember your GitHub credentials and keep authenticating you automatically. It’s pretty sweet, actually, and I think even easier than SSH on Linux.

On my Win10 machine, Git for Windows stores the SSH keys in %HOMEPATH%/.ssh/ by default.

1 Like

I installed git bash and I am getting the .viminfo and .bash_history files created in
so I think this is the location for .ssh folder I should keep.

I want to use multiple github accounts. So how should I configure .ssh in gitbash meaning putting they keys etc. I will try other things as mentioned above. I read this
but I think for different hosts like or you can configure the .ssh/config file to tell different hosts.
I want to use multiple accounts on same host and to learn the process manually and in a difficult way I do not want to use any Gui tool.

I have experienced some problems with multiple accounts (e.g. GitHub, GitLab, and my private Git stack) being used on the same repository (e.g. using GitHub account for public branches, but my Git stack’s account for local branches) since Git would try to use my GitHub account as the default one for all commits.

I’m not able to address you toward the right solution, but in some cases I had to edit repositories settings so that they would use a specific account instead of the default one. But usually SSH keys associations is handled automatically by the credentials manager, which keeps track of how you’ve used them.