-
Notifications
You must be signed in to change notification settings - Fork 779
Domain user login is always denied #1298
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
So it looks like you're authenticating with a password. The "error: 1326" equates to "The user name or password is incorrect.". Does your password contain non-ASCII characters? |
The password text only includes Latin alphabet letters and US-layout keyboard symbols. In fact a local test user whose password is identical can successfully login to the SSH server. |
Can you login locally to workstation locally or via RDP using the [email protected] format? |
i've been quite curious about the email address as well, these computers only accept domain\user as logon name and won't let anyone sign in via an email address. It isn't accepted by RDP, SSH, and desktop logon. |
For accuracy, it's actually the user principal name (UPN). Alot of organizations have their emails match their UPN, but they serve very different purposes. It looks like the code detected the UPN just fine. Are you the administrator of this network? Do you know why UPN-based logins would fail? I can't imagine how the network is functional without it working. |
I do not have administrative privilege on this network. Login attempts made using UPN "[email protected]" works on Windows desktop and over RDP, though not without a realm name prefix, successful login attempts were made using name "addomain\[email protected]". |
I have the same problem on Windows 10 1909, with "OpenSSH for Windows" version 7.7.2.2 . I need to use the domain user for SSH sessions. |
I am using domain user for login and it works. I use only username without any domain or upn for login and in sshd_config I have AllowUsers row with "domain\username" |
@matherm-aboehm Many changes / fixes were made with domain login and name resolution since that version. Please try the latest version. |
Sorry, my fault. I was misguided by the initial post. I thought I can use this issue tracker for the official Microsoft version which can be installed with "optional features" of Windows 10. |
Please answer the following
If it is a terminal issue then please go through wiki
https://github.com/PowerShell/Win32-OpenSSH/wiki/TTY-PTY-support-in-Windows-OpenSSH
"OpenSSH for Windows" version
7.7.2.1
Server OperatingSystem
Windows 10 Enterprise 64-bit
Client OperatingSystem
(Same as server) Windows 10 Enterprise 64-bit
What is failing
After having installed both OpenSSH server and client via "Manage optional features", and subsequently rebooted the computer, I logged in to my desktop as a domain user "myaddomain\myadusername" and started a PowerShell session. While ssh is running as a system service, my attempt at logging in as myself fails:
Subsequently I manually stopped sshd system service and launched it manually in an administrator PowerShell session, in another login attempt SSH client prompted for password entry (which was not prompted in the previous attempt):
My password entry is most likely correct after triple-check. In the meanwhile, sshd program logged the following output:
What might have gone wrong?
The text was updated successfully, but these errors were encountered: