Assuming you have installed and setup your favorite Linux distribution under the Windows 10 WSL, you have to make a couple of tweaks before you can actually SSH into it. A fantastic guide to making your Windows 10 PC behave like a respectable Linux dev environment which covers this and so much more can be found here. In this post, I am just extracting the SSH setup recipe with slight modifications/extensions (publishing it here for my own quick and stable reference, if nothing else):
My SSH key-based authorization kept failing on a private GitHub repo on a remote machine, even though my SSH keys for that machine were properly registered on the GitHub account. The solution was to force the “git” protocol instead of “http”. That is, instead of: url = https://github.com/accountname/reponame.git use: url = email@example.com:accountname/reponame.git in your “.git/config: [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote "origin"] url = git@github.