Skip to content

Instantly share code, notes, and snippets.

@bkmeneguello
Created December 5, 2020 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bkmeneguello/873f20259d3e30792ba155fd69d58f49 to your computer and use it in GitHub Desktop.
Save bkmeneguello/873f20259d3e30792ba155fd69d58f49 to your computer and use it in GitHub Desktop.
Enable SSH auth on Git in Windows
# 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