LoginSignup
2
2

More than 5 years have passed since last update.

chefで"ERROR: Your private key could not be loaded from"と注意された時の対処法

Posted at

対処法

  1. 秘密鍵をローカルレポジトリに配置

    
    $ cp -a ~/.ssh/id_rsa .chef/&ltuser_name&gt.pem
    
  2. chefでローカルオプションを有効にする

    
    $ chef cookbook list -z
    

怒られる原因

  1. .pemを用意していなかった
    警告内容としてはknifeコマンドを打つ前に,.chefにclient keyを配置しなければいけないらしい.

  2. chefサーバに問い合わせにいっていた
    ローカル環境でなく,まだ立てていないchefサーバに問い合わせに行ってしまっていた.

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2