5

나는 winrm 및 TrustedHosts를 처리하는 데 어려움을 겪고 있지만 아무 소용이 없습니다. 몇 가지 실험을 한 후 winrm/config/client의이 필드가 1023 심볼로 제한된다는 것을 알았습니다. 특히 ipv6로 호스트를 추가하는 경우에는 충분하지 않습니다. 나는 Installation and Configuration for Windows Remote Management에서 인용 : A trusted hosts list should be set up when mutual authentication cannot be established.TrustedHosts에 서버를 추가하지 않고 winrm을 사용하여 원격 서버에 연결

또한 동일한 파일에 텍스트가 말한다 : Other computers in a workgroup or computers in a different domain should be added to this list. 그래서 나는이 한 두 컴퓨터가 동일한 도메인에, 나는이에서 그들 중 하나에 액세스 할 수 있어야한다는 것을 의미한다고 생각 다른 사람은 winrm을 사용합니다.

나는 테스트 도메인에이 컴퓨터를 추가하려하고 실행 :

다른에 그들 중 하나에서

winrm get winrm/config/client -r:192.168.100.1 -u:user -p:pass

하지만,이 오류와 함께 실패했습니다 : 192.168를 추가 한 후

WSManFault 
    Message = The WinRM client cannot process the request. If the authentication 
scheme is different from Kerberos, or if the client computer is not joined to a 
domain, then HTTPS transport must be used or the destination machine must be ad 
ded to the TrustedHosts configuration setting. Use winrm.cmd to configure Truste 
dHosts. You can get more information about that by running the following command 
: winrm help config. 

Error number: -2144108316 0x803380E4 
The WinRM client cannot process the request. If the authentication scheme is dif 
ferent from Kerberos, or if the client computer is not joined to a domain, then 
HTTPS transport must be used or the destination machine must be added to the Tru 
stedHosts configuration setting. Use winrm.cmd to configure TrustedHosts. You ca 
n get more information about that by running the following command: winrm help c 
onfig. 

TrustedHosts에 .100.1 위의 쿼리가 성공합니다. 그래서 내 질문은 : TrustedHosts 수정하지 않고 두 호스트간에 winrm 사용할 수 있습니까? 신뢰할 수있는 호스트를 *으로 설정하는 것은 나를위한 옵션이 아닙니다.

답변

10

두 컴퓨터가 동일한 도메인에있는 경우 IP 주소 대신 ComputerName을 사용할 수 있어야합니다. IP 주소를 사용하면 내가 본 것을 TrustedHosts를 사용해야합니다.

+2

죄송합니다. 재미있을 수도 있지만 웹 어디서나 언급 된 ComputerName을 사용하면 TrustedHosts에 아무 것도 추가 할 필요가 없다는 것을 알 수 없습니다. 하지만 그것이 작동 확인 :) –

관련 문제