diff --git a/bin/unlock-las1 b/bin/unlock-las1 index 7b24bf0..803212d 100755 --- a/bin/unlock-las1 +++ b/bin/unlock-las1 @@ -7,4 +7,4 @@ if [[ ! -e "$KEYFILE" ]]; then exit 1 fi -gpg -d "$KEYFILE" | ssh root@las1.local "bash /root/unlock_disks" +gpg -d "$KEYFILE" | ssh root@las1.tor "bash /root/unlock_disks" diff --git a/bin/unlock-syncpi-alpha b/bin/unlock-syncpi-alpha index 276de66..783a097 100755 --- a/bin/unlock-syncpi-alpha +++ b/bin/unlock-syncpi-alpha @@ -7,4 +7,4 @@ if [[ ! -e "$KEYFILE" ]]; then exit 1 fi -gpg -d "$KEYFILE" | ssh root@syncpi-las1-alpha.local "bash /root/unlock_disks" +gpg -d "$KEYFILE" | ssh root@syncpi-las1-alpha.tor "bash /root/unlock_disks" diff --git a/bin/unlock-syncpi-bravo b/bin/unlock-syncpi-bravo new file mode 100755 index 0000000..5f3928d --- /dev/null +++ b/bin/unlock-syncpi-bravo @@ -0,0 +1,10 @@ +#!/bin/bash + +KEYFILE="$HOME/Documents/sync/secrets/luks/syncpi-las1-bravo.luks.gpg" + +if [[ ! -e "$KEYFILE" ]]; then + echo "wrong box!" >> /dev/stderr + exit 1 +fi + +gpg -d "$KEYFILE" | ssh root@syncpi-las1-bravo.tor "bash /root/unlock_disks"