Skip to content

Instantly share code, notes, and snippets.

View petersellars's full-sized avatar
✈️
Travelling for Work

Peter Sellars petersellars

✈️
Travelling for Work
View GitHub Profile
@stevepereira
stevepereira / resources.md
Last active January 18, 2020 16:20
Talk resources
@bradland
bradland / ssh-known-hosts-mgmt.sh
Last active April 4, 2023 21:21
SSH known_hosts tools
# 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 -F github.com