Reputation: 73
I am using windows 10 with OpenSSH, Git installed. Now I have setup to use ssh key for git communication. I used ssh-add to add key in ssh-agent. The problem is git uses its own local ssh-agent and I have added a key in windows open ssh-agent. Running where ssh-agent
returns two different location.
C:\Program Files\Git\usr\bin\ssh-agent.exe
C:\Windows\System32\OpenSSH\ssh-agent.exe
I would like to specify in git which ssh-agent to use.
Upvotes: 2
Views: 1458
Reputation: 13923
You can set the environment variable GIT_SSH
to the path of the OpenSSH executable (C:\Windows\System32\OpenSSH\ssh.exe
). After this, Git should use the ssh-agent of OpenSSH.
Upvotes: 2