Skip to content

Instantly share code, notes, and snippets.

@cham11ng
Last active November 27, 2019 04:36
Show Gist options
  • Save cham11ng/0a96ea20f340f570bc8a624e206fe28b to your computer and use it in GitHub Desktop.
Save cham11ng/0a96ea20f340f570bc8a624e206fe28b to your computer and use it in GitHub Desktop.
Setup SSH in Github

This is what got me working. Staring at C:\ProgramData\ssh\sshd_config I noticed this line was commented!!!

#PubkeyAuthentication yes

No idea how that happened; my box was pre-imaged. I uncommented that, plus ensured that these two lines in the config file were commented out:

#Match Group administrators
#      AuthorizedKeysFile __PROGRAMDATA__/ssh/administrators_authorized_keys

I then restarted with:

Restart-Service -Name sshd, ssh-agent -Force

And now it's working. OMG what a battle. Huge thanks to everyone who's posting here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment