macOS / binaries /

ssh-keyscan

/usr/bin/ssh-keyscan
Gather SSH public keys from servers

ssh-keyscan is a utility for gathering the public SSH host keys of a number of hosts. It was designed to aid in building and verifying ssh_known_hosts files, the format of which is documented in sshd.

source: man