从macOS终端,当我执行以下命令时:
pwsh -command "Enter-PSSession myhost"我从PowerShell得到错误:
Enter-PSSession: This parameter set requires WSMan, and no supported WSMan client
library was found. WSMan is either not installed or unavailable for this system.我花了2个小时才找到解决方案。我将回答我自己的问题。
发布于 2021-01-20 18:54:57
该问题的根本原因是Powershell依赖于以前的openssl版本。根据GitHub issue PowerShell/#5561的说法,这显然不容易修复。
以下是我找到的解决方法:
curl -L https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb \
-o openssl.rb
brew install ./openssl.rb发布于 2021-06-02 00:45:04
下面是我所做的:
pwsh -Command 'Install-Module -Name PSWSMan'
sudo pwsh -Command 'Install-WSMan'https://stackoverflow.com/questions/65808121
复制相似问题