Windows binaries specified as Git configuration options should be quoted, as otherwise they will often exhibit strange behaviors (for example, SSH may not see all of its command line arguments). It’s easiest to do this using single quotes, as PowerShell can be particular about how double quotes are interpreted… But to do so still requires that the entire string be surrounded by double quotes!

For example, the following command will configure Git to use Window’s built-in SSH executable:

git config --global core.sshCommand "'C:\Windows\system32\OpenSSH\ssh.exe'"