Convert from getopt to getopts.
Make check_ssh_keyfile work with hashed known_hosts.