-
Notifications
You must be signed in to change notification settings - Fork 779
Public key authentication not allowed by mm_answer_keyallowed #1385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Looks like you are an admin on the target. Did you put your authorized key in |
Thanks the reply. No, I did not put my authorized key in Failed to open file:C:/ProgramData/ssh/administrators_authorized_keys error:2 I.e., the file is not found. I put in my user's profile instead. |
See #1324 |
Could you be more clear please @manojampalam? As I said, I did not use the PROGRAMDATA/ssh/administrators_authorized_keys file. |
please go through that thread. you should have answers on why you would need to use that file. If you prefer not to use it, you should change your sshd_config and restart your service. |
OK. I'm pretty sure I've done that as well, but saw somebody suggests against using it in other "answers". Thanks, will check again and get back to you... |
Indeed it works. Thanks @manojampalam. |
Troubleshooting steps
https://github.com/PowerShell/Win32-OpenSSH/wiki/Troubleshooting-Steps
"OpenSSH for Windows" version
The latest, I.e.,
Server OperatingSystem
Client OperatingSystem
Windows 10 Enterprise
What is failing
Public key authentication
Expected output
Public key authentication went through
Actual output
Public key authentication denied.
Details
I started with ssh key and my $home/.ssh/authorized_keys that is working for the OpenSSH of my Ubuntu system, and get
RSA key is not allowed
error:For what it's worth, using authorized_keys works as expected with no issue, but not the TrustedUserCAKeys.
Then I went through the standard OpenSSH key gen and
ssh-copy-id
all under my Windows 10 Enterprise environment, of a brand new ED25519 keyBut got
ED25519 key is not allowed
too:I've consulted all the closed bugs here from https://github.com/PowerShell/Win32-OpenSSH/issues/, but none solved my problem.
The closest match is #1055, TrustedUserCAKeys not working on a domain computer, but I've already signed my key in
myid@mypc
format.I didn't touch the
AuthorizedPrincipalsFile
part because I'm not clear exactly what should I do.Detailed Logs
Please help. Thx!
The text was updated successfully, but these errors were encountered: