Now, my chef station is in linux, some chef clients are in windows and some are in linux.
Then i use the command: knife ssh ‘name:delta.*’ ‘sudo chef-client’, to let my linux node execute ‘chef-client’.
But for windows node, i had to execute the command like this: knife winrm ‘name:CNXANDRCNB001.delta.corp’ “chef-client” -x ‘DELTA\user’ -P ‘123456’.
As far as i know, if we use ssh protocol, we can save the pub key of work station to each node, then we can execute the first command without username and password successfully, so that i can deploy multiple clients.
But how can i do this in the second command as i use winrm protocol to access the windows node?