"ssh-keygen -F " seems to return one host-key for a given hostname (first matched?), and "ssh-keyscan " seems to return all matched, but the order is not clear.
What's the specific difference between the two?
"ssh-keygen -F " seems to return one host-key for a given hostname (first matched?), and "ssh-keyscan " seems to return all matched, but the order is not clear.
What's the specific difference between the two?
From the
ssh-keygen(1)
manpage:and from the
ssh-keyscan(1)
manpage:The former rums locally, hashing your
~/.ssh/known_hosts
file, while the latter contacts a remote server to request its keys.