大网数据广告活动
Windows Server 管理

Manage OpenSSH with Group Policy

· 52CE 我爱测

Learn how to create a Group Policy object for OpenSSH

Group Policy allows you to specify managed configurations for users and computers. This page will help you create a Group Policy object to manage the OpenSSH Server component.

Prerequisites

Before you start, the following prerequisites must be met:

  • You have administrator rights on the local device and the appropriate permissions to update Group Policy on your domain controller
  • You are managing the in-box version of OpenSSH
  • You are managing Operating Systems where both OpenSSH and Group Policy are present

Create a Group Policy Object

To create a Group Policy to manage OpenSSH perform the following steps:

  1. Open the Group Policy Management tool.
  2. In the navigation pane, expand Forest: your forest name, expand Domains, expand your domain.
  3. Select Group Policy Objects.
  4. Right-click Group Policy Objects, then select New to create a new Object.
  5. Name the Object so that it can be identified as managing OpenSSH. :::image type="content" source="media/openssh-gpo.png" alt-text="Screenshot of OpenSSH Group Policy.":::
  6. Double-click the new Object.
  7. Navigate to the Settings tab.
  8. Right-click on Computer Configuration, then select Edit....
  9. In the navigation pane, expand Computer Configuration, expand Policies, expand Windows Settings, expand Security Settings, then select System Services.
  10. Double-click OpenSSH SSH Server in the services list.
  11. Click the checkmark Define this policy setting.
  12. Select the desired service startup mode; Automatic, Manual, Disabled. :::image type="content" source="media/openssh-policy.png" alt-text="Screenshot of OpenSSH Group Policy Object.":::
  13. Select Apply.

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 2/12/2024
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。