Knife bootstrap node

i am trying to bootstrap a node and my nodes are under VMware as guests . when i run knife bootstrap command i am getting error as below

error failed to authenticate to with key
Response failed to authenticate as , synchronize the clock on your host

What does the contents of your knife.rb or config.rb look like? It should make no difference where your vms are running or physical vs virtual. Are you using hosted chef?

yes i am using hosted chef.may i know which location config.rb hosted that you are referring?

my current knife.rb contents

See for more information on knife configuration options

current_dir = File.dirname(FILE)
log_level :info
log_location STDOUT
node_name "prashi89"
client_key "#{current_dir}/prashi89.pem"
chef_server_url ""
cookbook_path ["#{current_dir}/../cookbooks"]

1 Like

Based on whats its telling you i would make sure the time on your workstation is correct.

If that is working I would recommend resetting the pem key for your user account.

Thanks Larry ,

so far i try to change time only in GUI , when i change in command line in linux and change in file , it started showing correct time and able to communicate to hosted chef now .

Thanks a lot