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:

 

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