Logging into Windows 10 OpenSSH server with Administrator account and public key
Thank you to all for your comments. Your requests for relevant information led me to the answer. In case anybody else hits this, the problem was...
My user is an administrator, and the following appears in sshd_config
:
Match Group administrators
AuthorizedKeysFile __PROGRAMDATA__/ssh/administrators_authorized_keys
So, by placing my public key in my own user's .ssh/authorized_keys
, it was not getting picked up. Once I placed it in the file called out in sshd_config
, things worked fine.
Thank you again!
Match Group administrators
AuthorizedKeysFile __PROGRAMDATA__/ssh/administrators_authorized_keys
I just ended up #commenting out these two lines in sshd_config. It was driving me UP THE WALL trying to figure out why none of the keys were being accepted.
If you comment them out, it will just use the keys in your %User%/.ssh folder, like every other SSH program in existence.
I literally spent 4 hours trying to figure out why it wasn't accepting my keys. I'm so mad at those two lines of code right now.