Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot clone GitHub SSH Repository: CreateProcessW failed error:193

This is what I am doing and I keep getting this: error

I tried:

  • checking my ssh key on GitHub, generating new one
  • uninstalling and installing the Git from https://git-scm.com/download/win
  • uninstalling and istalling OpenSSH from Windows Apps&Features / Optional Features
  • installing git via scoop, as well git-with-openssh as advised here
  • changing the GIT_SSH environment variable to correct path in scoop git-with-openssh and checking it in both user and system environment variables
  • googling

Notes:

  • I have no problem cloning the repository via https
  • When I cloned the repository via https through GitHub desktop, then changed the link in GitHub desktop to ssh it got stuck at after push
  • I think I am missing something as I cannot imagine there are or there is something wrong, help please :)
like image 463
Martin Jasso Avatar asked Jan 30 '26 16:01

Martin Jasso


1 Answers

As illustrated by git-for-windows/git issue 2380, make sure to:

  • delete/unset the GIT_SSH environment variable.
    In particular, it should not reference C:\Windows\System32\OpenSSH\ssh.exe
  • set your PATH in order to have C:\Program Files\Git\usr\bin before C:\Windows\System32\OpenSSH
like image 181
VonC Avatar answered Feb 01 '26 08:02

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!