The ssh-keyscan tool helps with collecting all publish SSH host keys of one or more servers. It is intended to verify the ssh_known_hosts file.