I am trying to Bootstrap one of my machine running on RHEL 9, using knife command from my local machine running on RHEL 7. The knife version installed is 16.5.77.
# /bin/knife --version
Chef Infra Client: 16.5.77
I tried running the knife boostrap command in verbose mode -
in your bootstrap command you didn't specify any flags for ssh key, user, or password. It'll default to the current user if none is specified but you still need to provide either ssh key or password flags and values for authentication. knife bootstrap --help will give you a list of all the flags you can use.
what version of chef-workstation are you using chef -v can you also check chef gem list |grep net-ssh With RHEL 9 they changed the default key algorithms and removed the older sha1 algorithms. net-ssh less than 7.x doesn't support the new algorithms and was updated in newer versions of chef-workstation to fix this issue.
I am running Chef Infra Client 16.5.77 on my machine which is running RHEL 7, and I am trying to bootstrap target machine running on RHEL 9 using the knife command.
I was not able to run chef -v command -
$ chef -v
-bash: chef: command not found
But following is the result of different version commands -