1 2 3 4 5
#!/bin/bash for host in "$@"; do ssh-keyscan -t rsa "$host" 2> /dev/null | ssh-keygen -lf - done