Skip to content

Instantly share code, notes, and snippets.

View najamelan's full-sized avatar
🖥️
Happy Hacking

Naja Melan najamelan

🖥️
Happy Hacking
View GitHub Profile
# This is a short collection of tools that are useful for managing your
# known_hosts file. In this case, I'm using the '-f' flag to specify the
# global known_hosts file because I'll be adding many deploy users on this
# system. Simply omit the -f flag to operate on ~/.ssh/known_hosts
# Add entry for host
ssh-keyscan -H github.com > /etc/ssh/ssh_known_hosts
# Scan known hosts
ssh-keygen -f /etc/ssh/ssh_known_hosts -H -F github.com