Skip to content

Instantly share code, notes, and snippets.

@gregjhogan
Created October 29, 2020 18:26
Show Gist options
  • Select an option

  • Save gregjhogan/0ad52e6a4d41187e3ff91faa89f655d4 to your computer and use it in GitHub Desktop.

Select an option

Save gregjhogan/0ad52e6a4d41187e3ff91faa89f655d4 to your computer and use it in GitHub Desktop.
ssh-keyscan add hosts to known_hosts
# list of hostnames from file
ssh-keyscan -H -f /<path>/<to>/<file> >> ~/.ssh/known_hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment