[Bug 893400] [NEW] cloud-init: Output machine usable public ssh host key (for known_hosts)

2011-11-21 Thread Eric Hammond
Public bug reported: In bug #892554, Kees Cook (kees) makes a great suggestion that cloud- init could output the public ssh host keys to the console output. This could then be read by automated software outside of the instance and added to a known_hosts file using the IP address and/or hostname

Re: [Bug 893400] [NEW] cloud-init: Output machine usable public ssh host key (for known_hosts)

2011-11-21 Thread Scott Moser
The simplest way to present the information might be to just print out the first two fields of all public host keys. For example: cut -f1-2 -d' ' /etc/ssh/ssh_host_*_key.pub I've not read anything other than the ssh-keygen manpage, but it says: -m key_format Specify a key format for