-
Notifications
You must be signed in to change notification settings - Fork 779
Cannot ssh to local account when using the sshd Service (as opposed cmd line sshd). generate_s4u_user_token: LsaLogonUser() failed. #1471
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
You are correct on the errors of interest. Anything unique about your username or your environment that might be different from standard installation of Windows? The noted error is translates to STATUS_INVALID_PARAMETER. |
I don't think so. My username is a four alphabet letters word. And the pc name is username-PC. Other than the PC is installed completely offline, there is nothing special that I can think of. Is there a way for me to get more information about which parameter is invalid and what its value is? |
I am facing this issue as well. How do I capture the log output from sshd when running it as a service? Might be the seem issue as #1399. EDIT: Nevermind, my issue was not having proper permissions set on ~/.authorized_keys. |
Hello. |
Add below lines to %programdata%\ssh\sshd_config, |
Please try the latest release. Feel free to reopen or create a new issue if you run into this issue again. |
@maertendMSFT I'm still seeing this problem with the latest version (OpenSSH_for_Windows_8.1p1); is there another active issue tracking this? Anything I can do to help diagnose? Or do I not actually have the latest version (I followed instructions here: https://github.com/PowerShell/Win32-OpenSSH/wiki/Install-Win32-OpenSSH)? |
Looks like #1543 might be it. |
Please answer the following
"OpenSSH for Windows" version
Win32
v8.0.0.0p1-Beta
from github releaseServer OperatingSystem
Windows 7 Professional
Client OperatingSystem
Windows 10 Home
What is failing
Unable to ssh to local user using public key when the service is running.
Expected output
Should be able to ssh in using public key authentication
Actual output
Similar to issue (#1213), I am not able to ssh with service running. I can use pub key using cmd line sshd.exe. But the difference is that I cannot ssh to local user either. My remote pc does not have internet access and is connected to my client pc using an Ethernet cable.
It looks like the direct reason of failure is
Log from sshd using sshd service
Log from ssh client
The text was updated successfully, but these errors were encountered: