builddoctor / skewer

runs standalone puppet on remote cloud nodes
Other
30 stars 4 forks source link

add_ssh_hostkey - causing denyhosts trigger #29

Closed davidwinter closed 12 years ago

davidwinter commented 12 years ago

Just adding this as a potential thing to think about for future development.

With a server that has denyhosts installed, when the Bootstrapper runs add_ssh_hostkey(), because the user no_such_user doesn't exist, it triggers it as an invalid user login attempt. After a few times of this being run, the host gets blocked.

Is there a tidier way to have the host added to the known_hosts file on the users machine?

simpsonjulian commented 12 years ago

If you can think of a way to get the public key of the server, it would be easy to 'fake' an entry in known_hosts.

Or, how about it doesn't attempt to run add_ssh_hostkey() more than once? That would be more robust. I'm just trying to get my acceptance tests on cucumber support to pass, and I can start looking at the backlog.

simpsonjulian commented 12 years ago

David, this ought to be better. Feel free to re-open if it doesn't help.