-
Notifications
You must be signed in to change notification settings - Fork 760
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
v9.8.0.0p1-Preview service continually crashes/restarts #2281
Comments
I was able to reproduce this both on a Windows 11 work, domain-joined, GPO managed machine and on my personal Win10 machine at home. The included .ps1 files in the OpenSSH program files folder to FixHosts and FixUsers that are mentioned when you search for error 1067 on the web do not help. |
FYI I found that v9.4.0.0p1 and later is much more strict about file AND folder permissions, and I ran into an issue like this on my fleet of machines. Any machine that had ever had sshd.exe run manually locally (and not exclusively as a service) was failing to launch the service. And there were no logs saying why. You may run into this if other files or folder in the I threw in more details in #2282 |
Hi all, |
Even after fixing permissions by running
|
As a workaround, can you download the zip package and add the |
Ok adding With the previous version 9.5 after installation you could re-add the read permission to the log folder and it would still start as expected. Obviously having log access is crucial for security. |
Hi, I installed OpenSSH with install-ssh.ps1, created the firewall exception, enabled the developer mode on Windows Server 2022 but "psexec -s sshd.exe -ddd" (on an elevated power shell) still has this output: debug2: load_server_config: filename PROGRAMDATA\ssh/sshd_config I read the troubleshooting page with no success and now I'm out of ideas. Any hints? |
OK, I've found the problem: The TeamFoundationSSHService was already running on this port, so no wonder! |
@user8446 read access should still be permitted with 9.8. If you are seeing otherwise, can you elaborate on the exact permissions so I can setup a repro? |
Hi yes it's the same as mentioned here: #2282 (comment) After accessing the log, sshd will not restart. Re-run
EDIT: I see your solution you just wrote after posting this. I restricted to the permissions you listed and it does start: Thank you for looking into this! |
Prerequisites
Steps to reproduce
Install the 9.8.0.0p1 version via MSI
attempt to start it via Services.msc
Expected behavior
service starts
Actual behavior
Service crashes rapidly with event ID 7031, text "The OpenSSH SSH Server service terminated unexpectedly. It has done this 1280 time(s). The following corrective action will be taken in 0 milliseconds: Restart the service."
Error details
No response
Environment data
Version
9.8.0.0
Visuals
No response
The text was updated successfully, but these errors were encountered: