-
Notifications
You must be signed in to change notification settings - Fork 772
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
Public key / certificate authentication not working in 1.0.0.0-beta #1033
Comments
I think you need to run ( .\FixHostFilePermissions.ps1 -Confirm:$false) which will fix host key, authorized key file permissions. Its mentioned in release notes under breaking changes. |
Thanks, working on the debug logs now. I already tried running the |
Okay, I tried running that script again. I think it wasn't working, because I was trying to follow the wiki document that tells you to sign the public key, inside the It's working with public key authentication now. Here's my ssh command:
Obviously, I also had to make sure that the |
Hi @pcgeek86 Did you solve your problem? I'm also experiencing same problem. Unfortunately this if first time that i'm using OpenSSH so i've no idea it was working before. Here's what i did: on sshd_config file: PubkeyAuthentication yes sshd service restarted. When i try to login with ssh -vvv i see this result before connection lost: debug1: Authentications that can continue: publickey,password,keyboard-interactive when i stop the sshd service and start it from powershell with debug command, it's directly closing itself when i want to login with private key. the debug result of sshd is like this: C:\Program Files\OpenSSH> ./sshd.exe -ddd i'm not sure that sshd service (that is already registered before) is reading same sshd_config file (which is located under C:\ProgramData\ssh How can i resolve this problem? |
@ne0c0de - You need to start the sshd debug mode in system context.
|
I had public key authentication working with the 0.0.24.0 version of the OpenSSH daemon. After building a new system, and installing the 1.0.0.0-beta version, I can't get public key / certificate authentication working. How do I make this work?
This is the old document I followed: https://github.com/PowerShell/Win32-OpenSSH/wiki/Certificate-Authentication
The text was updated successfully, but these errors were encountered: