dotfiles

My opinionated dotfiles
git clone git://git.erethon.com/dotfiles
Log | Files | Refs

commit 85728f59a71724492167db6c856041abfa3bf336
parent 4322c000d2dba147ea09f7e6786b5e877c277b79
Author: Dionysis Grigoropoulos <dgrig@erethon.com>
Date:   Wed,  9 Mar 2016 01:42:21 +0200

aliases: Add unluks, a func to unlock remote luks

Diffstat:
.aliases | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/.aliases b/.aliases @@ -85,3 +85,10 @@ alias alsamixer="alsamixer -c 0" cse() { grep -ir $1 ~/.mcabber/histo/ | sed -e 's/.*000 //' } + +#Unlock remote luks machines +unluks() { + read -s LUKSPASS + ssh -l root $1 "echo -ne $LUKSPASS >/lib/cryptsetup/passfifo" + unset LUKSPASS +}