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
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'"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With