cookbook-deploy_key
cookbook-deploy_key copied to clipboard
Empty ssh-keygen
I am experiencing a very odd issue with the deploy_key
resource. When I provide the name ads_dev-chef-ads1_deploy_key
my keys are generated but empty. The files appear, but nothing is in them.
I have appended a single character to the file name and it works. But remove that character and you get empty files.
-rw------- 1 kpdev kpdev 1675 May 19 00:10 aads_dev-chef-ads1_deploy_key
-rw------- 1 kpdev kpdev 382 May 19 00:10 aads_dev-chef-ads1_deploy_key.pub
-rw------- 1 kpdev kpdev 0 May 19 00:07 ads_dev-chef-ads1_deploy_key
-rw------- 1 kpdev kpdev 0 May 19 00:07 ads_dev-chef-ads1_deploy_key.pub
I have removed the cache, deleted the whole ~/.ssh/
folder and the results are always the same. I have even gone so far as to manually run the command and it works.
ssh-keygen -t rsa -q -C '' -f '/home/kpdev/.ssh/ads_dev-chef-ads1_deploy_key' -P ""
produces the appropriate output, but not through cookbook-deploy_key
Thanks for reporting this @germs12 . I was not able to reproduce it though. You can check here the code I used. If you could share your code and perhaps more information about the system you're running on, or a consistent way to reproduce the issue, that would be helpful.