Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fog_key_pair fails with password protected ssh key #179

Open
tatemz opened this issue Apr 16, 2016 · 3 comments
Open

fog_key_pair fails with password protected ssh key #179

tatemz opened this issue Apr 16, 2016 · 3 comments

Comments

@tatemz
Copy link

tatemz commented Apr 16, 2016

I kept getting errors while working with the DigitalOcean driver.

Here was my basic setup:

require "chef/provisioning"
require "chef/provisioning/fog_driver/recipe_dsl"

with_driver "fog:DigitalOcean"

fog_key_pair 'password_protected_rsa'

add_machine_options :bootstrap_options => {
  :image_distribution => "Ubuntu",
  :image_name => "14.04.4 x64",
  :flavor_name => "2GB",
  :region_name => "New York 2",
  :key_path => "/Users/tatemz/.ssh/password_protected_rsa"
}

machine 'chef' do
  recipe 'chef-server'
end

There were various errors with fog_key_pair from this line and this line.

I don't have a full debug output yet, as I just abandoned this method for a non-protected ssh key.

@jjasghar
Copy link
Contributor

If i'm reading this this correctly just doesn't work, correct?

If so, I'm more then willing to put a note in the README about not using it, tbh, i don't think I ever have used it myself.

@tatemz
Copy link
Author

tatemz commented Apr 18, 2016

Yeah. it gives an error specific to key_type not being an available type from cheffish.

Debug contents soon...

@jjasghar
Copy link
Contributor

awesome thanks. It would be nice to have support for this, but if this is just clarification in the README, could you put in a PR to fix the doc? 🤘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants