Wednesday 31 July 2024

Fix Git and Windows OpenSSH

 Fix Git and windows openSSH

The answer was found on stackoverflow

https://stackoverflow.com/questions/71556140/git-does-not-use-ssh-key-windows

To verify

Open command line 

type 

which ssh

The answer should be

C:/Windows/System32/OpenSSH/ssh.exe

Now to get git to use openSSH vs it's own ssh run the following line 

git config --global core.sshCommand C:/Windows/System32/OpenSSH/ssh.exe