cfg/bin/ls-unsafe-ssh
2016-07-21 16:29:54 +02:00

5 lines
190 B
Bash
Executable file

#!/bin/bash
for key in $(find . -type f | grep -vE "\.(pub|pem)" | grep -vE '(config|authorized_keys|known_hosts)' | sort); do
grep -q ENCRYPTED ${key} || echo "Key unsafe: ${key}"
done