我按照微軟官網上的安裝文檔試圖安裝openssh的用戶端版本:
老是報錯:
PS C:\WINDOWS\system32>windowsCapabiity -Online ame -like 'OpenSSHGet-WindowsCapability: Get-WindowsCapability failed. Error code = 0x800f0954At line:1 char:
Get-WindowsCapabi lity-Online? Name -ike OpenSSH
Categorylnfo NotSpecified: () Get-WindowsCapability], COMExceptior+ FullyQualifiedErrorld: Microsoft. Dism. Commands. GetWindowsCapabi lityCommand
https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse于是決定下載下傳安裝包然後離線安裝的方式來完成。
下面的連結是github上找到的openssh的二進制可執行版本:
https://github.com/PowerShell/Win32-OpenSSH/releases我選擇的是OpenSSH-Win64.zip, 解壓即用。