Last active
April 29, 2020 07:31
-
-
Save zimmerrol/eaace25a1a93e5126216b24c2675ada5 to your computer and use it in GitHub Desktop.
How to use ssh authentication for git on Windows 10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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