This commit is contained in:
2019-03-20 18:01:13 -07:00
parent e044c08c36
commit 868381fd01
3 changed files with 13 additions and 3 deletions

10
bin/unlock-las1 Executable file
View File

@@ -0,0 +1,10 @@
#!/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"