Skip to content

Instantly share code, notes, and snippets.

@ptflp
Created January 27, 2020 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ptflp/85149ff4b2590873174f831e8c23e2e3 to your computer and use it in GitHub Desktop.
Save ptflp/85149ff4b2590873174f831e8c23e2e3 to your computer and use it in GitHub Desktop.
Add fingerprint of github.com automatically by bash script
#!/bin/bash
echo "Applying fingerprint"
ssh-keygen -F github.com || ssh-keyscan github.com >>~/.ssh/known_hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment