hacks/bin/unlock-las1
2019-03-20 18:01:13 -07:00

11 lines
233 B
Bash
Executable File

#!/bin/bash
KEYFILE="$HOME/Documents/sync/secrets/luks/las1.eeqj.de.luks.txt.gpg"
if [[ ! -e "$KEYFILE" ]]; then
echo "wrong box!" >> /dev/stderr
exit 1
fi
gpg -d "$KEYFILE" | ssh root@las1.local "bash /root/unlock_disks"