I have Windows 10 with Git installed. This Git uses my
C:/Users/MyName dir as the HOME directory and the
/.ssh/ dir within, appropriately for sourcing my private SSH keys.
I have just enabled and setup "Bash on Ubuntu on Windows" (what a mouthful!) and installed Git therein also. I would like both Gits to use the same set of keys such that it does not matter what environment I work in on this machine, my commits will always come from me.
Trouble being that the HOME dir in bash is different (
/home/MyName) and thus it does not see the keys located in the now distant
../../mnt/c/Users/MyName/.ssh. I thought I'd be on to a winner by changing the HOME environment variable using
This did change the HOME dir successfully but the bash git still does not see the keys contained within the
I'm not sure if this is A) because bash git expects keys in a different file format? (current ones are
id_rsa.pub) B) bash git is ignoring the changed HOME variable? Or maybe both.
I'm also not sure C) if arbitrarily changing the HOME variable like this is a good idea in general w.r.t other programs that might reference it?