service is not starting.

Roger Roger 6,326 Reputation points
2024-10-24T17:33:32.3033333+00:00

Hi All

On one of my windows server 2019. i have installed openssh and it was working fine for 6months. Suddenly the service not starting. i am getting error 1067. please guide me. if at all if i need to reinstall do i need to backup anything.

service-os

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,785 questions
Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,521 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,198 questions
Windows Server Management
Windows Server Management
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Management: The act or process of organizing, handling, directing or controlling something.
440 questions
Windows Server Infrastructure
Windows Server Infrastructure
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Infrastructure: A Microsoft solution area focused on providing organizations with a cloud solution that supports their real-world needs and meets evolving regulatory requirements.
551 questions
{count} votes

Accepted answer
  1. MotoX80 34,346 Reputation points
    2024-10-25T00:42:09.8166667+00:00

    What permissions do you have set on C:\ProgramData\ssh? Anything other than Administrators and System?

    I checked my test VM where I have SSH installed, and it had the same error. I don't use that machine very much, so I have no idea when the problem started.

    I found this link. https://github.com/PowerShell/Win32-OpenSSH/issues/2287

    It does seem to be permissions related. I had granted access to other accounts. When I reset the permissions back to just system and administrators then the service started.

    Here is what I ran from a "run as administrator" command prompt.

    icacls.exe "C:\ProgramData\ssh"  /reset /t 
    icacls.exe "C:\ProgramData\ssh"  /inheritance:r  /inheritance:d   /grant  "NT AUTHORITY\SYSTEM:(OI)(CI)(F)" /grant "BUILTIN\Administrators:(OI)(CI)(F)" 
    
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.