Related to: Personal

Window 10 OpenSSH 서버 활성화 및 실행하기

OpenSSH Server 활성화

Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
  • 출력

    Path :
    Online : True
    RestartNeeded : False

OpenSSH Server 실행

Start-Service sshd

부팅 시점에 자동으로 서비스가 실행되도록 설정

Set-Service -Name sshd -StartupType 'Automatic'

동작 확인

Get-NetFirewallRule -Name OpenSSH-Server-In-TCP
  • 출력

    Name : OpenSSH-Server-In-TCP
    DisplayName : OpenSSH SSH Server (sshd)
    Description : Inbound rule for OpenSSH SSH Server (sshd)
    DisplayGroup : OpenSSH Server
    Group : OpenSSH Server
    ==Enabled : True ← True일 경우 정상==
    Profile : Any
    Platform : {}
    Direction : Inbound
    Action : Allow
    EdgeTraversalPolicy : Block
    LooseSourceMapping : False
    LocalOnlyMapping : False
    Owner :
    PrimaryStatus : OK
    Status : 저장소에서 규칙을 구문 분석했습니다. (65536)
    EnforcementStatus : NotApplicable
    PolicyStoreSource : PersistentStore
    PolicyStoreSourceType : Local

참조

https://www.lainyzine.com/ko/article/how-to-run-openssh-server-and-connect-with-ssh-on-windows-10/

Week 6