Created
December 5, 2020 15:12
-
-
Save bkmeneguello/873f20259d3e30792ba155fd69d58f49 to your computer and use it in GitHub Desktop.
Enable SSH auth on Git in Windows
This file contains hidden or 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
# Enable SSH Agent service from an Admin Shell | |
Set-Service ssh-agent -StartupType Automatic | |
Start-Service ssh-agent | |
# Allow Git to use system SSH agent instead ob embedded | |
# from https://snowdrift.tech/cli/ssh/git/tutorials/2019/01/31/using-ssh-agent-git-windows.html | |
[Environment]::SetEnvironmentVariable("GIT_SSH", "$((Get-Command ssh).Source)", [System.EnvironmentVariableTarget]::User) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment