I am trying to figure out a way by which I can run "sudo chef-client" from my workstation. I tried following way but failed.
C:\Users\Administrator\chef-repo>knife ssh name:node1 -a hostname -x windows -i knife.pem "sudo chef-client"
FATAL: 1 node found, but does not have the required attribute to establish the connection. Try setting another attribute to open the connection using --attribute.”
Any guidance?