Win32-OpenSSH
Win32-OpenSSH copied to clipboard
Local Windows accounts fail with known good password
Prerequisites
- [X] Write a descriptive title.
- [X] Make sure you are able to repro it on the latest version
- [X] Search the existing issues.
Steps to reproduce
Hi i have setup openssh to work with AD accounts. However now i am trying to make this work with a local account, to take AD troubleshooting out of it.
i have created a local windows user, set the password, tested the password by logging into windows as the account.
however when i try to connect via SSH client, on my laptop logged in as my AD account, it fails to login saying "Permission denied (publickey,password,keyboard-interactive)." I KNOW this password is correct.
Below is my config and ssh sshd.log sshd_config.txt
Expected behavior
Should allow the local account to connect
Actual behavior
Permission denied (publickey,password,keyboard-interactive).
Error details
No response
Environment data
nothing
Version
OpenSSH.Server~~~~0.0.1.0
Visuals
No response
The first thing I would do is uncomment #passwordauthentication yes
Can you ensure that the user has the required logon type? https://techdirectarchive.com/2022/02/08/error-1385-the-user-has-not-been-granted-the-requested-logon-type-at-this-time/ https://learn.microsoft.com/en-us/answers/questions/760241/the-user-has-not-been-granted-the-requested-logon
These look to be potential solutions based on what we are seeing in your logs, lines 173, 193, and 210