Yoou can use this script to print the ssh private key fingerprints for a server:

#!/usr/bin/env bash

# check the ssh fingerpints for the server keys

# check that the script is being run by root
if [[ "$(id -u)" != "0" ]] ; then
  echo "You must run '$0' as root or via sudo" 
  exit 1

for file in /etc/ssh/* ; do
  ssh-keygen -lf $file

This script is installed on Crin1, Crin2, Crin3 and Crin4 at /usr/local/bin/ssh-private-key-fingerprints

Last modified 2 years ago Last modified on Sep 14, 2016, 1:10:55 PM