mmgen / mmgen-geek-tools

Random scripts to make a geek’s life easier
GNU General Public License v3.0
15 stars 5 forks source link

Add a passphrase prompt #2

Closed whollacsek closed 3 years ago

whollacsek commented 3 years ago

@mmgen Thanks for this script it works great!

It would be even better if we can avoid the need to type such command to unlock:

$ ssh -p 2222 root@192.168.0.88 'echo -n abc > /lib/cryptsetup/passfifo'

I just tried the following on buzybox and it successfully prompted for the passphrase when I tried to log in with a 2nd shell.

# echo "/lib/cryptsetup/askpass "passphrase: " > /lib/cryptsetup/passfifo" > .profile
# echo "exit" >> .profile

If this is a good solution I'd love to see it included by default.

mmgen commented 3 years ago

Thanks, clever idea. I'll consider adding this to the script.

mmgen commented 3 years ago

Feature has been added (using slightly different implementation) in commit 6c32f2e05