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