Info

A tool that can extract the public keys of target host. It can be used also automatically add ssh keys to known hosts.

Trust Host

ssh-keyscan -H <host> >> ~/.ssh/known_hosts
  • The -H outputs it in a format that is appropriate for ~/.ssh/known_hosts