Git: Detect and use win32 openssh if installed

Created on 12 Dec 2018  路  5Comments  路  Source: git-for-windows/git

  • [x] I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?

    2.2 via Chocolatey.

  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?

    Win 7 SP2

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

CMD or Powershell. Often via VS Code integrated terminal.
ssh [email protected]

  • What did you expect to occur after running these commands?

    I expect to use the Win32 OpenSSH port instead of the tweaked OpenSSL. Here's the link to the project

  • What actually happened instead?

It didn't use it.

up for grabs

Most helpful comment

This should work:

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

All 5 comments

This should work:

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

[x] I was not able to find an open or closed issue matching what I'm seeing

I found two: https://github.com/git-for-windows/git/issues/1556 and https://github.com/git-for-windows/git/issues/1683. Of particular note: https://github.com/git-for-windows/git/issues/1556#issuecomment-410237781

This issue is acknowledged, and simply needs a contributor with a little time to work on it (it is really not all that hard).

Thanks for those references, I didn't see those for whatever reason. Don't have time myself to work on those but I can adopt the tweaks mentioned for now.

Thanks @congyiwu for putting in a bit of effort to drive this issue, even if it is now blocked.

I found two: #1556 and #1683. Of particular note: #1556 (comment)

I'll close this ticket in favor of https://github.com/git-for-windows/git/issues/1683 (which saw more action from interested volunteers).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Unknow0059 picture Unknow0059  路  3Comments

kc22033 picture kc22033  路  4Comments

Snaptags picture Snaptags  路  4Comments

daxelrod picture daxelrod  路  4Comments

Jarmos-san picture Jarmos-san  路  3Comments