远程登录,PSSessionOpenFailed,求指导


PowerShell交流中心分类: 远程管理远程登录,PSSessionOpenFailed,求指导
0
子语 asked 6 年 ago

请教一下,从linux服务器创建PSSession到windows服务器,PSSessionOpenFailed,使用的是域账号,
输入$s = New-PSSession -HostName ip -UserName username后报错,报错信息如下:
New-PSSession : [ip] There is an error processing data from the background process. Error reported:Cannot process an element with node type “Text”.
Only Element and EndElement node types are supported..
At line:1 char:6
+ $s = New-PSSession -Hostname ip -UserName username@domain
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: {System.Manageme….RemoteRunspace:RemoteRunspace} [New-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : 2012,PSSessionOpenFailed
 
后来用本地账号试了,也是同样的报错,但是之前在另一套环境用过,没问题,实在不知道原因在哪,有没有高手指导下?