首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用IP的PowerShell credSSP会话

使用IP的PowerShell credSSP会话
EN

Server Fault用户
提问于 2016-09-16 08:52:00
回答 1查看 1.5K关注 0票数 0

我需要使用从服务器A到服务器B的credSSP身份验证打开Powershell远程会话,但是,服务器A不能解析B的名称。在A上启用了CredSSP以将凭据(在“允许委派新凭据”中启用)传递给B,而B被配置为接收委派的凭据。是否有可能以某种方式使用IP地址而不是主机名/FQDN打开credssp?

代码语言:javascript
复制
PS C:\Windows\system32> New-PSSession xxx.xxx.xxx.xxx -Authentication Credssp -Credential user
New-PSSession : [xxx.xxx.xxx.xxx] Connecting to remote server xxx.xxx.xxx.xxx failed with the following error message : The WinRM c
lient cannot process the request. A computer policy does not allow the delegation of the user credentials to the target
 computer because the computer is not trusted. The identity of the target computer can be verified if you configure the
 WSMAN service to use a valid certificate using the following command: winrm set winrm/config/service '@{CertificateThu
mbprint="<thumbprint>"}'  Or you can check the Event Viewer for an event that specifies that the following SPN could no
t be created: WSMAN/<computerFQDN>. If you find this event, you can manually create the SPN using setspn.exe .  If the
SPN exists, but CredSSP cannot use Kerberos to validate the identity of the target computer and you still want to allow
 the delegation of the user credentials to the target computer, use gpedit.msc and look at the following policy: Comput
er Configuration -> Administrative Templates -> System -> Credentials Delegation -> Allow Fresh Credentials with NTLM-o
nly Server Authentication.  Verify that it is enabled and configured with an SPN appropriate for the target computer. F
or example, for a target computer name "myserver.domain.com", the SPN can be one of the following: WSMAN/myserver.domai
n.com or WSMAN/*.domain.com. Try the request again after these changes. For more information, see the about_Remote_Trou
bleshooting Help topic.
At line:1 char:1
+ New-PSSession xxx.xxx.xxx.xxx -Authentication Credssp -Credential user
EN

回答 1

Server Fault用户

回答已采纳

发布于 2016-09-19 09:39:24

"credssp“需要在组策略"AllowFreshCredentials”中设置SPN。

“必须在AllowFreshCredentials客户端上启用允许委派新凭据(AllowFreshCredentials)策略设置,并且必须向策略中添加带有WSMAN前缀的服务主体名称(SPN)。”

https://msdn.microsoft.com/en-us/library/ee309365%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396

SPN的语法需要FQDN或NetBIOS名称,而不是IP地址。

https://msdn.microsoft.com/en-us/library/ms677601(v=vs.85).aspx

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/803465

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档