【发布时间】:2019-10-09 03:29:47
【问题描述】:
当我退出 PowerShell 远程会话时遇到 SOAP 错误,在该会话中我从 Windows 10 系统远程连接到 Ubuntu 16.04 服务器。有没有办法修复或消除此错误?
我收到以下错误:
Closing the remote server shell instance failed with the following error message : <SOAP-ENV:Fault xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"><SOAP-ENV:Code><SOAP-ENV:Value>SOAP-ENV:Receiver</SOAP-ENV:Value><SOAP-ENV:Subcode><SOAP-ENV:Value>wsman:InternalError</SOAP-ENV:Value></SOAP-ENV:Subcode></SOAP-ENV:Code><SOAP-ENV:Reason><SOAP-ENV:Text xml:lang="en-US"/></SOAP-ENV:Reason></SOAP-ENV:Fault> For more information, see the about_Remote_Troubleshooting Help topic.
在 Ubuntu 服务器上,我目前安装了 Open Management Infrastructure 版本 1.4.2-1、PowerShell Remoting Protocol 版本 1.4.1-28 和 PowerShell Core 6.0.1。对于此设置,我按照以下网站上的说明进行操作:https://4sysops.com/archives/powershell-remoting-between-windows-and-linux/
这就是我不断重现错误的方式:
## Setup Credentials to connect to PowerShell on remote Linux server
$credentials = Get-Credential
## Disable cert checking (for now)
$sessionOptions = New-PSSessionOption -SkipCACheck -SkipRevocationCheck -SkipCNCheck
## Start the remote session
Enter-PSSession -ComputerName ServerName -Credential $credentials -Authentication basic -UseSSL -SessionOption $sessionOptions
## Exit out of the remote session
exit
## This is the error I receive on exit:
Closing the remote server shell instance failed with the following error message : <SOAP-ENV:Fault xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"><SOAP-ENV:Code><SOAP-ENV:Value>SOAP-ENV:Receiver</SOAP-ENV:Value><SOAP-ENV:Subcode><SOAP-ENV:Value>wsman:InternalError</SOAP-ENV:Value></SOAP-ENV:Subcode></SOAP-ENV:Code><SOAP-ENV:Reason><SOAP-ENV:Text xml:lang="en-US"/></SOAP-ENV:Reason></SOAP-ENV:Fault> For more information, see the about_Remote_Troubleshooting Help topic.
【问题讨论】:
标签: powershell