這是本文件的舊版!


Windows 10 啟動 OpenSSH Server(sshd) 的方式

  • 這方式應該可以適用 Windows Server 2019、2022
  • 使用系統管理員權限開啟 PowerShell
    • 確認目前的 Windows 版本是否可以使用 OpenSSH

      Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*'

      如果可以執行會出現這樣的訊息

      Name  : OpenSSH.Client~~~~0.0.1.0
      State : NotPresent
      
      Name  : OpenSSH.Server~~~~0.0.1.0
      State : NotPresent

    • 如果還未安裝就執行安裝命令

      # Install the OpenSSH Client
      Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
      
      # Install the OpenSSH Server
      Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0

  • tech/win10_sshd.1663155388.txt.gz
  • 上一次變更: 2022/09/14 19:36
  • jonathan