Windows 10 allows using all default OpenSSH tools. However, git was throwing permission denied for every time when I tried to clone repositories from Github, Gitlab or Bitbucket over SSH. You need to perform a few tweaks to make it work.
- Make sure ssh-agent service enabled, or run in Powershell (as administrator):
Get-Service -Name ssh-agent | Set-Service -StartupType Manual
git config --global core.sshCommand C:/Windows/System32/OpenSSH/ssh.exe