刀引导窗口winrm / ssh超时

我正试图与厨师客户端引导Windows服务器。 我可以手动进入并安装Chef omnibus安装程序。 然后,我使用chef-client gem安装程序成功安装了厨师客户端的rubygem刀窗。 当我尝试执行

knife bootstrap windows winrm myserver.net 

我收到超时消息,如:

  knife bootstrap windows winrm myserver.net Bootstrapping Chef on myserver.net Enter your password: ERROR: Network Error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. - connect(2) (http://myserver.net:5985) Check your knife configuration and network settings 

我不确定这是什么意思,或者检查什么。

–EDIT–发现,我不得不在目标Windows服务器上运行“winwrm quickconfig -q”来打开端口。 现在,我收到来自服务器的401错误。

 C:\Users\CP_USER>knife bootstrap windows winrm myserver.net -x CP_USER Bootstrapping Chef on myserver.net Enter your password: ERROR: Failed to authenticate to ["myserver.net"] as CP_USER Response: Bad HTTP response returned from server (401). 

运行基本authentication:

 C:\Users\Administrator> winrm set winrm/config/service @{AllowUnencrypted="true"} C:\Users\Administrator> winrm set winrm/config/service/auth @{Basic="true"} 

请参阅: https : //github.com/opscode/knife-windows#nodes

请检查您是否可以从工作站执行telnet到您尝试访问的节点。

这可以通过在命令提示符下inputtelnet来检查。

如果telnet未被识别为命令,请按照以下步骤操作:

 1) Right click on "My Computer" > Manage > features 2) Click on "Add Features" 3) Select "Telnet Client" 4) Press Install buuton 

安装需要一段时间。

安装完成后,您可以从工作站的命令提示符到主厨节点执行相同的telnet

 telnet <ip_address> 5985 //5985 is the port you want to do telnet. 

谢谢!!!

CHANDAN