Languages
[Edit]
EN

Bash - print fingerprints for SSHD keys (md5, sha-1, sha-A256 fingerprints)

9 points
Created by:
Pearl-Hurley
559

In this short article, we would like to show how using Bash, get a fingerprints for certificates used by SSH server under Debian.

Simple steps:

  1. login to your server,
     
  2. list keys in /etc/ssh directory with the following command:

    Example output:

     
  3. select one key and print fingerprints with the following commands:
    Where: rsa in ssh_host_rsa_key.pub in the above command can be replaced by dsa, ecdsa or ed25519 depending on available cryptographic algorithms.

    Example output:

 

Hint: in the presented results, /etc/ssh/ssh_host_rsa_key.pub file contained only one key.

 

See also

Edit
  1. SSH - verify used local and server key fingerprints (Windows - Linux connection verification)
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join