Skip to content

Commit

Permalink
Modify known hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmorganson committed Jun 23, 2024
1 parent bb1f1da commit fd5d443
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion home/dot_ssh/known_hosts

This file was deleted.

6 changes: 6 additions & 0 deletions home/dot_ssh/modify_known_hosts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
tempfile="$(mktemp)"
trap 'rm -rf "${tempfile}"' EXIT
cat > "${tempfile}"
if [ ! -n "$(grep "^github.com " "${tempfile}")" ]; then ssh-keyscan github.com >> "${tempfile}" 2>/dev/null; fi
cat "${tempfile}"

0 comments on commit fd5d443

Please sign in to comment.