#!/bin/bash for file in /etc/ssh/ssh_host_*.pub; do ssh-keygen -l -f $file done