Reputation: 387
I have configured Native Windows 10 OpenSSH like described here: https://www.makeuseof.com/tag/windows-10-ssh-vs-putty/
Also I have started as a service ssh-agent, added private key, and between restart my private key password's are remembered.
So mainly, I can do the following immediately after a restart without a prompt: ssh -T [email protected]
However, I don't know how to get any implementation of 'git' to delegate the ssh work to the Windows native ssh-agent, so that I can execute without any prompt a clone like: git clone [email protected]:SandboxAtHoopSoft/create-aws-accounts.git
Upvotes: 4
Views: 3153
Reputation: 37
Just solved this myself this was a very frustrating journey but for me the following got me going:
C:\Windows\System32\OpenSSH\
is in your path variables (yea I know Windows should see this on its own)C:\Users\<your user>\.gitconfig
edit your global git config file to point to the correct ssh.exe
: C:/Windows/System32/OpenSSH
id_rsa.ppk
file is in C:\Users\<your user>\.ssh
If you don't have an SSH key yet generate one and make sure it ends up in this folderUpvotes: 2
Reputation: 387
Solutions found are:
Set OS environment variable:
set GIT_SSH=C:\WINDOWS\System32\OpenSSH\ssh.exe
OR
Set git config:
git config --global core.sshCommand "'C:\Windows\System32\OpenSSH\ssh.exe'"
Upvotes: 6