gpt4 book ai didi

ubuntu - 运行时无法加载私钥 "knife client list"

转载 作者:太空宇宙 更新时间:2023-11-03 16:42:20 24 4
gpt4 key购买 nike

配置文件写入/home/ubuntu/sudo/home/ubuntu/chef-repo/.chef/knife.rb

ubuntu@mychefclient:~$ knife client list
WARNING: No knife configuration file found
ERROR: Your private key could not be loaded from /etc/chef/client.pem
Check your configuration file and ensure that your private key is readable

最佳答案

请检查一次 knife.rb 文件是否在 .chef/knife.rb 中。

如果没有运行以下命令:

knife configure initial

因此它将创建 knife.rb,然后检查 knife.rb 中客户端 key 的路径并交叉检查 client.pem 是否存在于该位置。

如果这不起作用。

只需转到客户端节点并从/etc/chef 中删除 client.pem,然后运行 ​​chef-client 以便它会再次创建 client.pem。现在将该 client.pem 复制到服务器并将该位置添加到 knife.rb

它肯定会起作用:)

关于ubuntu - 运行时无法加载私钥 "knife client list",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19651507/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com