かきすて

正しいかどうかよくわからない知識をよくわからないままとりあえず公開してみようというコンセプトで運営しています。

knife soloが秘密鍵のパスフレーズを聞いてくれない

$ knife solo cook -i ~/.ssh/id_rsa hoge@hoge.example.com

Enter the password for hoge@hoge.example.com
ERROR: Net::SSH::AuthenticationFailed: Authentication failed for user hoge@hoge.example.com

てなる.秘密鍵パスフレーズを聞いてくれるようになる方法もあるのかもしれないけど,わからなかったのでパスフレーズをなくした.

$ openssl rsa -in id_rsa -out id_rsa_nopass
$ chmod 600 ~/.ssh/id_rsa_nopass
$ knife solo cook -i ~/.ssh/id_rsa_nopass  hoge@hoge.example.com