-
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
Unable to log in to server with public key after changing server's password #1254
Comments
I have the same problem, I can ssh in with my personal domain account but not with my local admin account. |
Was not able to reproduce on my end. 1332 - "No mapping between account names and security IDs was done." Can you check if the user account is in good shape? Are you able to login using those credentials interactively on your server? Can you try the same steps with a different/new account? |
My server is actually my personal laptop with only one admin account, and yes I can normally login with the account's credentials. The client is just another laptop which I need to ssh to my personal laptop. What's funny is the ssh setup worked before, until I changed my personal laptop (server)'s password. By the way, the error I got was |
That was for 1332. Fixed it now. Recommend playing with one other account to scope down the issue |
https://docs.microsoft.com/en-us/windows/desktop/Debug/system-error-codes--1300-1699- ERROR_NONE_MAPPED 1332 (0x534) No mapping between account names and security IDs was done. |
Oh wow thanks everyone for the heads up. A quick search on the error itself led me to the So I changed my username back to |
Windows PowerShell PS C:\Windows\system32> cd "C:\Program Files\OpenSSH-Win64" error get_passwd: LookupAccountName() failed: 1332. ? what is the solution? |
@ipndeveloper This error basically means that Windows couldn't find an account that matched the username string that you put in. Usually the LookupAccountName() is very forgiving so ensure that you're specifying an account that is valid on the destination system and/or try using a different format (username, DOMAIN\username, username@domain.com, etc). I also recommend opening a separate issue to discuss this. |
@NoMoreFood thanks for answering , I followed the steps of this link |
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.0
Server OperatingSystem
Windows 10 Pro
Client OperatingSystem
Windows 10 Enterprise
What is failing
OpenSSH was installed using
chocolatey
. The client couldssh
into my server (both are on the same network) until I changed the Windows password on the server itself. Now bothpassword
andpublic-key
methods fail to work.Expected output
Able to log in as before.
Actual output
Unable to log in using either
password
orpublic-key
:Logs
This is where it gets weird:
Continue:
^ Public key is disabled due to the
invalid user
error.The text was updated successfully, but these errors were encountered: