Reputation: 1
How do I configure my git / git-lfs ssh command path correctly?
i configured my git ssh command like this:
git config core.sshCommand "C:\\Windows\\System32\\OpenSSH\\ssh.exe -i C:\\Users\\Admin\\.ssh\\id_rsa"
but when i try to perform a checkout the ssh path is lacking backslashes:
batch request: sh: line 1: C:WindowsSystem32OpenSSHssh.exe: command not found: exit status 127
The interesting part is that it only fails for the smudge-filter, also the logs are from a jenkins-pipeline.
Upvotes: 0
Views: 31
Reputation: 1001
Git for Windows provides a BASH emulation used to run Git from the command line. You need to use *nix shell style paths for the executable. However, I think the args passed to ssh.exe need to be windows paths. Try:
git config core.sshCommand "C:/Windows/System32/OpenSSH/ssh.exe -i C:\\Users\\Admin\\.ssh\\id_rsa"
Upvotes: 0