> For the complete documentation index, see [llms.txt](https://www.pentestwiki.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.pentestwiki.com/home-lab/active-directory/windows-ssh-server.md).

# 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>
