2016-07-21 13:48:49 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-03-10 11:47:55 +00:00
|
|
|
for key in $(find . -type f | grep -vE "\.(pub|pem)" | grep -vE '(config|authorized_keys|known_hosts)' | sort); do
|
2016-07-21 13:48:49 +00:00
|
|
|
grep -q ENCRYPTED ${key} || echo "Key unsafe: ${key}"
|
|
|
|
done
|