ssh key fingerprint information

Blog

Use ssh-keygen with the -l option (that's a lowercase L). You'll need to specify the -f [file] option, too, as you could have more than one .pub file (dsa, rsa, etc.).

dymock[1030]% ssh-keygen -lf ~/.ssh/id_dsa.pub
1024 2a:12:ab:34:cd:56:ef:44:78:aa:9a:bb:dd:cc:66:f8 /home/kitt/.ssh/id_dsa.pub (DSA)

When in doubt, man ssh-keygen

% man ssh-keygen
...
  -l  Show fingerprint of specified public key file.  Private RSA1 keys
      are also supported.  For RSA and DSA keys ssh-keygen tries to find
      the matching public key file and prints its fingerprint.  If combined
      with -v, an ASCII art representation of the key is supplied with the
      fingerprint.
...

Add new comment