[chef] Re: using winrm


Chronological Thread 
  • From: Jeppe Nejsum Madsen < >
  • To: " " < >
  • Subject: [chef] Re: using winrm
  • Date: Fri, 22 Nov 2013 22:23:30 +0100

Are you sure you have the knife-windows plugin installed?

This looks like what you'll see when knife doesn't find it:

DEBUG: establishing connection to windows:22

/Jeppe



On Fri, Nov 22, 2013 at 9:40 PM, Nikhil Shah < " target="_blank"> > wrote:
Anyone know what this would be caused from? I've installed Windows Remote Management and following the instructions on  http://docs.opscode.com/plugin_knife_windows.html. I've used this utility once or twice before and remember it working: 


# knife bootstrap windows winrm v2mq13.theorchard.com -r 'role[base_windows],role[windows]' -x administrator -P $$$$$$$ -E PRODUCTION -VV
DEBUG: Looking for bootstrap template in /usr/lib64/ruby/gems/1.8/gems/chef-11.8.0/lib/chef/knife/bootstrap
DEBUG: Found bootstrap template in /usr/lib64/ruby/gems/1.8/gems/chef-11.8.0/lib/chef/knife/bootstrap
Bootstrapping Chef on windows
DEBUG: Adding windows
DEBUG: establishing connection to windows:22
DEBUG: connection established
INFO: negotiating protocol version
DEBUG: remote is `SSH-2.0-OpenSSH_4.3'
DEBUG: local is `SSH-2.0-Ruby/Net::SSH_2.7.0 x86_64-linux'
DEBUG: read 704 bytes
DEBUG: received packet nr 0 type 20 len 700
INFO: got KEXINIT from server
INFO: sending KEXINIT
DEBUG: queueing packet nr 0 type 20 len 1508
DEBUG: sent 1512 bytes
INFO: negotiating algorithms
DEBUG: negotiated:
* kex: diffie-hellman-group-exchange-sha1
* host_key: ssh-rsa
* encryption_server: aes128-cbc
* encryption_client: aes128-cbc
* hmac_client: hmac-sha1
* hmac_server: hmac-sha1
* compression_client: none
* compression_server: none
* language_client: 
* language_server: 
DEBUG: exchanging keys
DEBUG: queueing packet nr 1 type 34 len 20
DEBUG: sent 24 bytes
DEBUG: read 152 bytes
DEBUG: received packet nr 1 type 31 len 148
DEBUG: queueing packet nr 2 type 32 len 140
DEBUG: sent 144 bytes
DEBUG: read 720 bytes
DEBUG: received packet nr 2 type 33 len 700
DEBUG: queueing packet nr 3 type 21 len 20
DEBUG: sent 24 bytes
DEBUG: received packet nr 3 type 21 len 12
DEBUG: beginning authentication of `administrator'
DEBUG: queueing packet nr 4 type 5 len 28
DEBUG: sent 52 bytes
DEBUG: read 52 bytes
DEBUG: received packet nr 4 type 6 len 28
DEBUG: trying none
DEBUG: Mechanism none was requested, but isn't a known type.  Ignoring it.
DEBUG: trying publickey
DEBUG: connecting to ssh-agent
ERROR: could not connect to ssh-agent
DEBUG: trying hostbased
DEBUG: trying password
DEBUG: queueing packet nr 5 type 50 len 76
DEBUG: sent 100 bytes
DEBUG: read 84 bytes
DEBUG: received packet nr 5 type 51 len 60
DEBUG: allowed methods: publickey,gssapi-with-mic,password
DEBUG: password failed
ERROR: all authorization methods failed (tried none, publickey, hostbased, password)
~]# 

--
Nikhil Shah / System Administrator

nshah@theorchard.com


The Orchard® / www.theorchard.com

t (+1) 212.308.5648 / f (+1) 212.201.9203
23 E. 4th St., 3rd Fl / New York, NY 10003

The Daily Rind™ / www.dailyrindblog.com

Facebook / @orchtweets


Privileged And Confidential Communication.

This electronic transmission, and any documents attached hereto, (a) are protected by the Electronic Communications Privacy Act (18 USC §§ 2510-2521), (b) may contain confidential and/or legally privileged information, and (c) are for the sole use of the intended recipient named above. If you have received this electronic message in error, please notify the sender and delete the electronic message. Any disclosure, copying, distribution, or use of the contents of the information received in error is strictly prohibited




Archive powered by MHonArc 2.6.16.

§