Skip to content

Instantly share code, notes, and snippets.

@zimmerrol
Last active April 29, 2020 07:31
Show Gist options
  • Save zimmerrol/eaace25a1a93e5126216b24c2675ada5 to your computer and use it in GitHub Desktop.
Save zimmerrol/eaace25a1a93e5126216b24c2675ada5 to your computer and use it in GitHub Desktop.
How to use ssh authentication for git on Windows 10
1. Add ssh key to shh config:
Host github.com
IdentityFile C:\Users\XXX\.ssh\github_id_rsa
2. Auto-start OpenSSH Authentication Agent (via PowerShell as admin)
Set-Service ssh-agent -StartupType Automatic
3. Make git use Window's OpenSSH installation and not its own:
setx GIT_SSH "C:\Windows\System32\OpenSSH\ssh.exe"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment