Skip to content

If the system reboots or shuts down with the SSHD service running, an error ID 7031 will be logged to the Event Log. #2171

Open
@kemaruya

Description

@kemaruya

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

  1. Download msi version of the OpenSSH for Windows
  2. Install OpenSSH for Windows
  3. Start OpenSSH SSH Server service.
  4. Shutdown or Restart Windows

Expected behavior

No error or warning events should be logged to the Event Log for SSHD services.

Actual behavior

You can see ID 7031 Error Event on System Event Log like as following.

Log Name:      System
Source:        Service Control Manager
Date:          10/31/2023 8:50:51 PM
Event ID:      7031
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      ws2022eng
Description:
The OpenSSH SSH Server service terminated unexpectedly.  It has done this 1 time(s).  The following corrective action will be taken in 0 milliseconds: Restart the service.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Service Control Manager" Guid="{555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service Control Manager" />
    <EventID Qualifiers="49152">7031</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8080000000000000</Keywords>
    <TimeCreated SystemTime="2023-11-01T03:50:51.7542233Z" />
    <EventRecordID>1250</EventRecordID>
    <Correlation />
    <Execution ProcessID="744" ThreadID="5784" />
    <Channel>System</Channel>
    <Computer>ws2022eng</Computer>
    <Security />
  </System>
  <EventData>
    <Data Name="param1">OpenSSH SSH Server</Data>
    <Data Name="param2">1</Data>
    <Data Name="param3">0</Data>
    <Data Name="param4">1</Data>
    <Data Name="param5">Restart the service</Data>
    <Binary>73007300680064000000</Binary>
  </EventData>
</Event>

Error details

No response

Environment data

PS C:\Users\Administrator> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.20348.1
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.20348.1
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Version

9.4.0.0

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions