2017-11-07 17 views
0

Windows 노드를 사용할 수 있도록 설정했습니다. 이를 위해 아래 명령을 사용하여 Windows 7에서 http 및 https 원격 세션을 사용하도록 설정합니다.HTTP 또는 HTTPS 원격 세션을 설정할 수 없습니다.

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://github.com/ansible/ansible/raw/devel/examples/scripts/ConfigureRemotingForAnsible.ps1'))" 

다음과 같은 오류가 발생합니다.

도와 주시겠습니까?

다른 노트북에서는 집에서 잘 작동합니다.

set http_proxy=http://lsl5kor:N%[email protected]:8080/ 
set https_proxy=http://lsl5kor:N%[email protected]:8080/ 

set http_proxy=http://lsl5kor:[email protected]@jk-proxy-apac.india.com:8080/ 
set https_proxy=http://lsl5kor:[email protected]@jk-proxy-apac.india.com:8080/ 

set HTTP_PROXY=http://lsl5kor:[email protected]@jk-proxy-apac.india.com:8080/ 
set HTTPS_PROXY=http://lsl5kor:[email protected]@jk-proxy-apac.india.com:8080/ 

set HTTP_PROXY=http://lsl5kor:N%[email protected]:8080/ 
set HTTPS_PROXY=http://lsl5kor:N%[email protected]:8080/ 

내가 위의 모든 세부 사항을 시도 ... STIL

업데이트 작동하지 :

가 보인다, 연결 생성 (기록 된을

+  Throw "Unable to establish an HTTP or HTTPS remoting session." 
+  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    + CategoryInfo   : OperationStopped: (Unable to estab...moting session.:String) [], RuntimeException 
    + FullyQualifiedErrorId : Unable to establish an HTTP or HTTPS remoting session. 

나는 아래 옵션을 시도 에서). 나는 Windows 머신의 이벤트 로그 아래에서 관찰했다.

The WinRM service has received an unsecure HTTP connection from hostname. 

This is not a secure configuration. 

User Action 
Set AllowUnencrypted to False in WinRM configuration to ensure packets are encrypted on the wire. 

미리 감사드립니다.

답변

1

프록시를 사용할 수 있습니다. 그래서 먼저 프록시를 설정하려고하면 :

set http_proxy=IP:Port 
set https_proxy=IP:Port 

을 또는 당신이 할 수있는 고토 당신의 Control Panel->Internet Options->Connections->LAN Settings->Proxy servers. 모두 함께

:

set http_proxy=IP:Port 
set https_proxy=IP:Port 

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://github.com/ansible/ansible/raw/devel/examples/scripts/ConfigureRemotingForAnsible.ps1'))" 
+0

세트 HTTP_PROXY = HTTP : // lsl5kor : N%[email protected] : 8080/ 세트하고 https_proxy = HTTP : // lsl5kor : N % [email protected] : 8080/ http_proxy = http : // lsl5kor : N @ llapat12 @ jk-proxy-apac.india.com : 8080/ set https_proxy = http : // lsl5kor : N @ llapat12 @ jk-proxy-apac.india.com : 8080/ set HTTP_PROXY = http : // lsl5kor : N @ llapat12 @ jk-proxy-apac.india.com : 8080/ HTTPS_PROXY = http : //lsl5kor:[email protected]@jk-proxy-apac.india.com:8080/ 세트 HTTP_PROXY = HTTP : // lsl5kor : N%[email protected] : 8080/ 난 아직 – sri

+0

U가 proxifier을 시도 할 수 있습니다 작동하지 ... 위의 모든 세부 사항을 시도 , HTTPS : //www.proxifier.com/download.htm. 프록시를 가리 키도록 설정하십시오. 그리고 나머지는 돌봐 줄 것입니다. –

+0

프록시 (proxy)와 아무런 문제가없는 것 같습니다. 시험관 – sri