Open teknowledgist opened 7 hours ago
For v9.4 and above, to fix the service startup failure, please run the commands from https://github.com/PowerShell/Win32-OpenSSH/issues/2290#issuecomment-2442269463
Changing the Service from "Disabled" (because even with "Manual", it constantly loops), and I immediately get:
And the same 7036 event, "The OpenSSH SSH Server service entered the running state." followed by 7031 event, "The OpenSSH SSH Server service terminated unexpectedly. It has done this 5051 time(s). The following corrective action will be taken in 0 milliseconds: Restart the service."
What OpenSSH version is this with now?
And what is the path to the ssh server executable for the service? Can be found by opening services, navigating to OpenSSH SSH Server, right-clicking and selecting properties, then viewing the General tab.
Version 9.8.1.0:
Are you able to start sshd in debug mode - sshd.exe -ddd
?
if you have multiple versions of OpenSSH on the machine simultaneously, there may be conflicting libcrypto.dll
files depending on the paths/order in the PATH environment variable
I'm not aware of any additional versions/installs of OpenSSH. It's not in C:\Windows\System32\OpenSSH
. Where else should I look?
Looks like the sshd_config line 88 syntax is preventing startup
changed from
DenyUsers
to
# DenyUsers
And it is running. Thank you!
Why can't there be a generic "config error"? It doesn't even say "error" in the debug messages.
Prerequisites
Steps to reproduce
Our Server 2019 with OpenSSH worked without issue for several years. Installed the October 2024 updates, rebooted, and OpenSSH won't start with a "Error 1067".
I saw that is commonly due to additional permissions on c:\ProgramData\ssh (specifically the "logs" subfolder) and possibly C:\Windows\System32\OpenSSH. I also noted that the .exe files were v9.5.2.1 with a modify date in October.
What in the world is going on here!? This shouldn't be that hard!
I installed the v9.8.1.0
.MSI
from here, and it gets into an endless start-service -> unexpectedly terminated -> restart service loop (Event 7031) and also will not run.Basically, because of some screwup with the standard monthly update, I no longer have an SSH service that is necessary for a business process.
I don't care what flavor of SSH, but please help me fix this!
Expected behavior
Actual behavior
Error details
No response
Environment data
Version
7.7.2.1, 9.5.2.1, 9.8.1.0
Visuals
No response