Skip to content

Instantly share code, notes, and snippets.

@fishd72
Created May 7, 2020 13:53
Show Gist options
  • Save fishd72/7e3a08c724572754b9b5f3299e06d704 to your computer and use it in GitHub Desktop.
Save fishd72/7e3a08c724572754b9b5f3299e06d704 to your computer and use it in GitHub Desktop.
[SSH Host key management] Managing SSH host keys #ansible #ssh

Messing with SSH Host Keys

Add SSH Host Keys to local known_hosts
ssh-keyscan -H <hostname or IP> >> ~/.ssh/known_hosts

Find SSH Host Keys
ssh-keygen -F <hostname or IP>

Remove SSH Host Keys
ssh-keygen -R <hostname or IP>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment