Files
ssh-mgmt/invalidate_key.sh
ADAM David Alan Martin dca9b4df95 Make the generated RSA keys a bit less aggressive.
5888 is supposed to be roughly equivalent to 180 bits of keyspace,
which is what I use for passphrases, anyhow.
2022-03-24 12:27:59 -04:00

15 lines
308 B
Bash
Executable File

#!/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