Skip to content

Instantly share code, notes, and snippets.

@iegik
Last active January 27, 2021 07:32
Show Gist options
  • Save iegik/33da6a397065d2c4c00be825d0bb47f7 to your computer and use it in GitHub Desktop.
Save iegik/33da6a397065d2c4c00be825d0bb47f7 to your computer and use it in GitHub Desktop.

If you accidently remove any host from known_hosts you can restore them by following command:

ssh-keyscan -H HOSTNAME >> ~/.ssh/known_hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment