Not able to communicate with chef hosted server

i’m not able to access chef hosted server from workstation

[root@ip-172-31-2-71 .chef]# knife cookbook upload httpd
ERROR: OpenSSL::PKey::RSAError: private key needed.
[root@ip-172-31-2-71 .chef]# knife cookbook test httpd
WARNING: DEPRECATED: Please use ChefSpec or Rubocop to syntax-check cookbooks.
checking httpd
Running syntax check on httpd
Validating ruby files
Validating templates
[root@ip-172-31-2-71 .chef]# knife client list
ERROR: OpenSSL::PKey::RSAError: private key needed.
[root@ip-172-31-2-71 .chef]#

Please check your .pem file available in chef-server and workstation.

Simple Fix copy the starter kit from the chef-server to the workstation. Inside that zip file you will have chef-repo folder. And please run knife commands from chef-repo folder…