OpenSSH SHH server service doesn't start on Windows 11 computer

Anonymous
2025-01-26T01:01:03+00:00

I use my Windows 11 computer to connect to other computers in my home network using SSH. Recently, I noticed that SSH stopped working from those computers to my Windows computer, although I can still connect from my computer to the others. I discovered that the OpenSSH Server service on my Windows computer does not start. Each time I attempt to start it, I receive the error message: "Windows could not start the OpenSSH SSH Server service on the local machine. Error 1067" Does anyone know how to resolve this issue?

***moved from Windows / Windows 11 / Internet and connectivity***

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Anonymous
    2025-01-29T07:42:40+00:00

    The OpenSSH SSH Server service on Windows 11 failing with error 1067 is usually caused by configuration or permission issues. Please try the following steps to resolve it:

    1. Verify OpenSSH Installation
      Run in PowerShell (Admin):

    Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*'

    If missing, reinstall using:

    Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0

    Check Configuration

    Open C:\ProgramData\ssh\sshd_config and ensure Port 22 is correctly set.

    1. Reset Service Permissions
      Run in PowerShell (Admin):

    icacls "C:\ProgramData\ssh" /grant "NT SERVICE\SSHD:(OI)(CI)F" /T

    sc.exe config sshd obj="NT AUTHORITY\LocalService" type= own

    net start sshd

    1. Regenerate SSH Host Keys

    cd C:\Windows\System32\OpenSSH

    ssh-keygen -A

    net start sshd

    1. Check Logs for Errors

    Event Viewer → Windows Logs → Application → Look for sshd errors.

    Run in PowerShell (Admin):

    Get-Content "C:\ProgramData\ssh\logs\sshd.log" -Tail 50

    1. Reinstall OpenSSH (If Needed)

    Remove-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0

    Restart-Computer

    Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0

    If the issue persists, please share the error logs for further analysis.

    Best regards,

    Rosy Yuan

    0 comments No comments
  2. Anonymous
    2025-02-02T09:22:39+00:00

    I followed your instructions (I am not the original poster that asked this question), but when I tried reinstalling openssh, after a long time of no progress in the progress bar this poped up: Add-WindowsCapability failed. Error code = 0x8024001e. I am able to install OpenSSH.Server, but not the client, so even the server is useless

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2025-02-22T20:21:52+00:00

    I had a similar problem which was caused by manually creating the ssh-keygen files in the programdata\ssh dir...

    After deleting them and restart of sshd service they were created automatically and everything worked fine..

    1 person found this answer helpful.
    0 comments No comments