1 2 3 4 5 6 7 8
#!/bin/bash for type in sha256 md5; do for file in /etc/ssh/ssh_host_*.pub; do ssh-keygen -l -f $file -E $type done echo done