Skip to content

Commit 79ab1f6

Browse files
committed
Revisions
1 parent 370654d commit 79ab1f6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

support/windows-server/system-management-components/enable-openssh-verbose-logging.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ appliesto:
1515
---
1616
# How to enable OpenSSH verbose logging
1717

18-
To enable logging, modify the sshd_config file and restart the OpenSSH service.
18+
To enable logging verbose logging for the OpenSSH Server service, modify the sshd_config file and restart the OpenSSH Server service. To do this, follow these steps:
1919

20-
1. Using an Administrator-level account, open a text editor, and then open **%ProgramData%\ssh\sshd_config**. The default text of the log section should resemble the following excerpt:
20+
1. Using an Administrator-level account, open a text editor, and then open **%ProgramData%\ssh\sshd_config**. The default text of the "Logging" section should resemble the following excerpt:
2121

2222
```output
2323
# Logging
@@ -34,11 +34,11 @@ To enable logging, modify the sshd_config file and restart the OpenSSH service.
3434
```
3535

3636
> [!NOTE]
37-
> By default, the logs go to Windows Event Viewer. To record a log file, instead, use `SyslogFacility LOCAL0`. The OpenSSH service records log files in %ProgramData%\ssh\logs.
37+
> By default, the OpenSSH Server service sends logs to Windows Event Viewer. To record a log file instead, use `SyslogFacility LOCAL0` instead of `SyslogFacility AUTH` in sshd_config. The OpenSSH service records log files in %ProgramData%\ssh\logs.
3838
3939
1. Save and close the sshd_config file.
4040

41-
1. To restart the OpenSSH service, open a Windows Command Prompt window, and then run the following command:
41+
1. To restart the OpenSSH Server service, open a Windows Command Prompt window, and then run the following command:
4242

4343
```console
4444
NET STOP "OpenSSH SSH Server" && NET START "OpenSSH SSH Server"

0 commit comments

Comments
 (0)