I found myself needing to connect to github via bash on windows. But I didn’t want to have to register a new public key with github. I decided to use my existing key from Windows. To do this I simply copy the file from windows to wsl.

Here is the command I used, you might find it useful:

 

cp /mnt/C/Users/gordon/.ssh/{id_rsa,id_rsa.pub} ~/.ssh/ && chmod 600 ~/.ssh/id_rsa

Make sure to use the full path to your ssh folder on windows.