PowerShell / Win32-OpenSSH

Win32 port of OpenSSH
7.2k stars 740 forks source link

Local Windows accounts fail with known good password #2153

Open steakpmm opened 9 months ago

steakpmm commented 9 months ago

Prerequisites

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

matsmcp commented 9 months ago

The first thing I would do is uncomment #passwordauthentication yes

maertendMSFT commented 9 months ago

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