# Windows SSH Server

1. SSH 서버 다운로드 및 설치 확인

<pre class="language-powershell"><code class="lang-powershell"><strong># SSH 서버 다운로드
</strong>Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0

<strong># 설치 확인
</strong>Get-Service sshd
</code></pre>

2. SSH 활성화 및 자동 실행 설정

<pre class="language-powershell"><code class="lang-powershell"><strong># SSH 서버 실행
</strong>Start-Service sshd

<strong># SSH 서버 자동 실행 설정
</strong>Set-Service -Name sshd -StartupType 'Automatic'

<strong># 인바운드 방화벽 규칙 생성
</strong>netsh advfirewall firewall add rule name="OpenSSH Server" dir=in action=allow protocol=TCP localport=22
</code></pre>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.pentestwiki.com/home-lab/active-directory/windows-ssh-server.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
