Comment 2 for bug 893400

Revision history for this message
Scott Moser (smoser) wrote : Re: [Bug 893400] [NEW] cloud-init: Output machine usable public ssh host key (for known_hosts)

> 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 the -i (import) or -e (export)
    conversion options. The supported key formats are: “RFC4716”
    (RFC4716/SSH2 public or private key), “PKCS8” (PEM PKCS8 public key)
    or “PEM” (PEM public key). The default conversion format is
    “RFC4716”.

I can't see a good reason not to use something that is widely documented
as opposed to inventing our own (even if the invention is very simple).
http://tools.ietf.org/html/rfc4716

Thoughts?