0

How do I find the ssh fingerprint of a ssh2 key ? With a ssh-1 key I can do ssh-keygen -lf /path/to/keyfile. However when I convert the same key to a ssh2 key using ssh-keygen -e -f keyfile.pub > keyfile_ssh2 I can no longer the fingerprint using the 1st command :

~# ssh-keygen -lf /path/to/ssh2key
ssh2key is not a public key file.
letsc
  • 101
  • 3

1 Answers1

1

From the ssh-keygen man page:

-m key_format

   Specify a key format for the -i (import) or -e (export) conversion
   options. The supported key formats are: “RFC4716” (RFC 4716/SSH2
   public or private key), “PKCS8” (PEM PKCS8 public key) or “PEM” 
   (PEM public key). The default conversion format is “RFC4716”.

RFC4716 is just informational and OpenSSH is not required to implement it, although some commercial SSH implementations do adopt the formats defined in it.

In other words, OpenSSH has its own format and is not concerned with working with other formats, except when it's asked to export its own data to be used with other tools.

gtirloni
  • 5,746
  • 3
  • 25
  • 52