> 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?

** Also affects: cloud-init
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/893400

Title:
  cloud-init: Output machine usable public ssh host key (for
  known_hosts)

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/893400/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to