nano-tetra-modules/KeyManager/scripts/generate_key.sh

15 lines
198 B
Bash
Executable File

#!/bin/sh
#2015 - Whistle Master
[[ -f /tmp/KeyManager_key.progress ]] && {
exit 0
}
touch /tmp/KeyManager_key.progress
ssh-keygen -N "" -f /root/.ssh/id_rsa
rm /tmp/KeyManager_key.progress