Can't get VS2019 to fetch/push to the remote (happens to be on GitLab). What is the correct configuration?
I'm using the built-in Windows 10 OpenSSH (
C:\Windows\System32\OpenSSH)I've set env var
GIT_SSH=C:\Windows\System32\OpenSSH\ssh.exePrivate key loaded into running
ssh-agentservice viassh-add.From a normal command window (i.e., not a WSL bash shell) I can push/fetch to my heart's delight.
From VS2019, with the repo open (
Git>Local Repositories>myrepo), when I try eitherGit>FetchorGit>PushI get the following in the output window:Commit eebc0b4a created locally in repository r:\bbits\edu-bitcoin-staging Opening repositories: r:\bbits\edu-bitcoin-staging Pushing master Pushing to gitlab.com:bakins-bits/edu-bitcoin-staging.git Error: cannot spawn C:\Windows\System32\OpenSSH\ssh.exe: No such file or directory Error encountered while pushing to the remote repository: Git failed with a fatal error. Git failed with a fatal error. unable to fork Failed to push to the remote repository. See the Output window for more details.
Note the C:\Windows\System32\OpenSSH\ssh.exe: No such file or directory - and yet, that's the correct path:
C:\>dir C:\Windows\System32\OpenSSH\ssh.exe
Volume in drive C is P70-MSVC
Volume Serial Number is 8240-9525
Directory of C:\Windows\System32\OpenSSH
10/15/2019 06:50 AM 882,688 ssh.exe
1 File(s) 882,688 bytes
0 Dir(s) 333,358,600,192 bytes free