hacks/bin/unlock-las1

11 lines
233 B
Plaintext
Raw Normal View History

2019-03-21 01:01:13 +00:00
#!/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
2019-10-04 12:26:45 +00:00
gpg -d "$KEYFILE" | ssh root@las1.local "bash /root/unlock_disks"