Windows 10: OpenSSH server does not remember its startup settings in Services after a Windows update

Discus and support OpenSSH server does not remember its startup settings in Services after a Windows update in Windows 10 Software and Apps to solve the problem; I have filed 5 bug complaints about this, but have received no fixes or feedback.In Windows 11 Developers build, I have set OpenSSH Server to start... Discussion in 'Windows 10 Software and Apps' started by jamesrome, Oct 7, 2022.

  1. jamesrome Win User

    OpenSSH server does not remember its startup settings in Services after a Windows update


    I have filed 5 bug complaints about this, but have received no fixes or feedback.In Windows 11 Developers build, I have set OpenSSH Server to start automatically. I use this to connect from my Mac. It is MUCH faster than smb.But after every Windows update, OpenSSH is set to manual and is not started. One would think this would be an easy fix??

    :)
     
    jamesrome, Oct 7, 2022
    #1
  2. Diapolo10 Win User

    Having trouble getting the built-in OpenSSH server to work

    Goal: I'm trying to set up the Windows built-in OpenSSH server (version 0.0.1.0, as I recall that being the latest one) in order to use my desktop PC remotely should I have the need for raw performance when on the road through a Windows
    10 laptop.

    Problem: Despite following
    the official guide
    to the letter, when I try to run "Start-Service sshd" in PowerShell I get this error:

    Code:
        Start-Service : Service 'OpenSSH SSH Server (sshd)' cannot be started due to the following error: Palvelun sshd avaamin    en tietokoneessa . epäonnistui.    At line:1 char:1    + Start-Service sshd    + ~~~~~~~~~~~~~~~~~~        + CategoryInfo          : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service],       ServiceCommandException        + FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand
    If I run the executable without "Start-Service", however, it runs and seemingly waits for connections, but according to the Services tab in Task Manager it's not actually doing anything at all, nor is there an SSH user account associated
    with it.

    What I've tried:

    • Restarting Windows (after every installation)
    • Uninstalling and re-installing both the server and the client (both from PowerShell and through the Settings application)
    • Switched to local account instead of a Microsoft account (suggested on a forum thread, tried the previous steps again)
    • Using an elevated PowerShell instance with admin rights

    System information:

    • Windows 10 Home, version 1809, build 17763.379
    • Hardware configuration:
      • CPU: i9-9900k @ 4.9GHz
      • RAM: 32GB 3200MHz DDR4
      • GPU: Asus ROG Strix GTX 1080
      • Motherboard: Asus PRIME Z390-A, BIOS version 0805

    Let me know if other information is required.
     
    Diapolo10, Oct 7, 2022
    #2
  3. jimbo45 Win User
    OpenSSH server configuration on Windows10

    Hi there

    guten Tag @wolfgang6444

    try and browse to the openssh keygen.exe file and double click --this should generate a key for you.


    OpenSSH server does not remember its startup settings in Services after a Windows update [​IMG]


    look at the config file too --open with notepad.

    reboot the Windows machine and then have another go at starting SSHD service -- you might also need to ensure that your user can start services --might need mucking around with secpol --this is an area of Windows though I have almost ZERO experience in.

    I added to my previous post to show how to do it via Putty and SSH (from the Linux Host) as well.

    Both ssh-agent and SSHD services need to be running (my Windows is in icelandic but it shows services running I set to manual for testing).


    OpenSSH server does not remember its startup settings in Services after a Windows update [​IMG]


    Cheers
    jimbo
     
    jimbo45, Oct 7, 2022
    #3
  4. OpenSSH server does not remember its startup settings in Services after a Windows update

    OpenSSH server configuration on Windows10

    O.K.,

    It seems I got it working:

    • Do the following as administrator:
      cd to C:\Windows\System32\OpenSSH and execute ssh-keygen -A
      Install-Module -Name OpenSSHUtils -RequiredVersion 0.0.2.0 in a windows-powershell
      Download and unzip OpenSSH-Win64.zip from Release v0.0.15.0 . PowerShell/Win32-OpenSSH . GitHub
      Copy FixHostFilePermissions.ps1 to C:\Windows\System32\OpenSSH
      In a windows-powershell cd to C:\Windows\System32\OpenSSH and execute .\FixHostFilePermissions
      Now the sshd service can be started and -guess what- you can finally ssh to your windows10 computer

    Ain't this genuine pure crap ???
     
    wolfgang6444, Oct 7, 2022
    #4
Thema:

OpenSSH server does not remember its startup settings in Services after a Windows update

Loading...
  1. OpenSSH server does not remember its startup settings in Services after a Windows update - Similar Threads - OpenSSH server does

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

    in Windows 10 Gaming
    OpenSSH SHH server service doesn't start on Windows 11 computer: 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...
  3. OpenSSH SHH server service doesn't start on Windows 11 computer

    in Windows 10 Software and Apps
    OpenSSH SHH server service doesn't start on Windows 11 computer: 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...
  4. issues with openssh service after win10 update

    in Windows 10 Installation and Upgrade
    issues with openssh service after win10 update: Hello.I've been using OpenSSH server on Win10 for a long time.But recently I've noticed that after update which was installed circa 10 of october 2024 OpenSSH service stopped working. Service is stopped and I can't start it.Does anyone know what could be the cause of the...
  5. issues with openssh service after win10 update

    in Windows 10 Gaming
    issues with openssh service after win10 update: Hello.I've been using OpenSSH server on Win10 for a long time.But recently I've noticed that after update which was installed circa 10 of october 2024 OpenSSH service stopped working. Service is stopped and I can't start it.Does anyone know what could be the cause of the...
  6. issues with openssh service after win10 update

    in Windows 10 Software and Apps
    issues with openssh service after win10 update: Hello.I've been using OpenSSH server on Win10 for a long time.But recently I've noticed that after update which was installed circa 10 of october 2024 OpenSSH service stopped working. Service is stopped and I can't start it.Does anyone know what could be the cause of the...
  7. OpenSSH server not starting in Windows 11

    in Windows 10 Software and Apps
    OpenSSH server not starting in Windows 11: I have installed and enabled, in principle, the OpenSSH server, according to the instructions that I read in several places for ex. here: https://woshub.com/connect-to-windows-via-ssh/ . When I try to start the server with Start-Service sshdI get 10 times"AVISO: Aguardando...
  8. OpenSSH server does not remember its startup settings in Services after a Windows update

    in Windows 10 Gaming
    OpenSSH server does not remember its startup settings in Services after a Windows update: I have filed 5 bug complaints about this, but have received no fixes or feedback.In Windows 11 Developers build, I have set OpenSSH Server to start automatically. I use this to connect from my Mac. It is MUCH faster than smb.But after every Windows update, OpenSSH is set to...
  9. OpenSSH Server / client on W2K16 server

    in Windows 10 Virtualization
    OpenSSH Server / client on W2K16 server: Hi there running a W2K16 server as a VM - seems the the optional features install don't include the openSSH server or client -- I'm using the Desktop experience standard edition of W2K16 server However using the powershell command from within the VM both products get...
  10. Create OpenSSH server windows 10 2004 : error 1067 ; can't run the service OpenSSH SSH...

    in Windows 10 BSOD Crashes and Debugging
    Create OpenSSH server windows 10 2004 : error 1067 ; can't run the service OpenSSH SSH...: Hi, I had recently to reset my installation in order to update windows I had big problems, trust me.. Now I am trying to install an open ssh server, but I have an error when launching it 2.png.[ATTACH] Do someone know this error ? Can you help me to solved it ? Titouan...