Initial drafts of these useful tools

This commit is contained in:
2022-03-24 12:26:55 -04:00
parent d78030c216
commit dde810d73b
2 changed files with 40 additions and 0 deletions

13
invalidate_key.sh Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env bash
while [ ! -z $1 ]; do
echo "We will delete the key for the system known as \"${1}\":"
ls -l ~/.ssh/valid/id_${1}.pub
echo "Press enter to continue..."
read foobar
rm -f ~/.ssh/valid/id_${1}.pub
cat ~/.ssh/valid/id_*.pub > ~/.ssh/authorized_keys
shift 1
done