-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CreateProcessW failed error:193 #2380
Comments
This morning I was looking into this problem some more and one thing I tried was running the command 'git push origin master' from the Windows command prompt. That works. So I tried again in the Git for Windows bash and it still fails. |
That's funny, with Credential Manager, any |
This is a git push via ssh from within Git for Windows bash. As I mentioned, I can use ssh and scp from within git bash and I can push using ssh from windows command prompt. What fails is pushing via ssh from git bash. |
Found it! There was an environment variable GIT_SSH=C:\Windows\System32\OpenSSH\ssh.exe (a valid path btw). I deleted the variable and restarted, and now the push works. |
Might be worth pursuing why it did not work. Would it have worked with forward slashes instead of backslashes? |
The issue is there are two versions of ssh on my machine, the Git version "C:\Program Files\Git\usr\bin\ssh.exe" and the OpenSSH for Windows version "C:\Windows\System32\OpenSSH\ssh.exe" that ships with Windows 10. These are not equivalent although they take exactly the same parameters as input. The environment variable was pointing Git to the Windows version which causes the crash. When deleted, or explicitly set to the Git version, there is no crash. One possible explanation, perhaps the Windows ssh.exe expects backslashes in its input. Although my origin has no slashes, back or forward, some other parameter behind the scenes may. Some parts of Windows will now automagically convert slashes forward to back. Command prompt probably does while Git bash does not. Thus, feeding forward slashed paths from Git bash to Windows ssh would not convert them while calling from Command Prompt would trigger the conversion. Again, don't know if that is a valid assumption, but if true, it would explain the results. |
I found this similar thread #1918 but the solution did not fix the problem for me.
Setup
$ git --version --build-options
git version 2.23.0.windows.1
cpu: x86_64
built from commit: 4db2e5c
sizeof-long: 4
sizeof-size_t: 8
$ cmd.exe /c ver
Microsoft Windows [Version 10.0.18362.418]
defaults?
$ cat /etc/install-options.txt
Editor Option: Notepad++
Custom Editor Path:
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled
Enable Builtin Interactive Add: Disabled
to the issue you're seeing?
Not that I am aware of
Details
Git Bash
Minimal, Complete, and Verifiable example
this will help us understand the issue.
git push origin master
upload master branch to server
CreateProcessW failed error:193
ssh_askpass: posix_spawn: Unknown error
Permission denied, please try again.
CreateProcessW failed error:193
ssh_askpass: posix_spawn: Unknown error
Permission denied, please try again.
CreateProcessW failed error:193
ssh_askpass: posix_spawn: Unknown error
user@domain: Permission denied (publickey,password).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I have replaced the user@domain with this generic since it is a private user account and I am not sure it should be posted in a public forum. I will provide it in a private message if needed.
URL to that repository to help us with testing?
The problem is not with the repository, I cannot login thus never get that far.
From Git Bash I can run scp and upload files, I can run ssh and create a shell successfully, but when doing git push (or git clone) I receive the error. I am never asked to provide a password. Note that my sftp.log file is reporting failed passwords so git is sending something, probably an empty string I would guess.
This happens regardless of whether or not the server public key is in known_hosts.
The text was updated successfully, but these errors were encountered: