我按照微软官网上的安装文档试图安装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, 解压即用。