bash - gpg batch-encryption with my own key without keyboard interaction -
i need save couple of files on webserver , have them encrypted own public key before.
therefore wrote simple bash-script:
#!/bin/bash ls *.7z > filelist.txt while read currow gpg --encrypt -ac --recipient myemail@example.com $currow done < filelist.txt rm filelist.txt but doesn't work. each file dialog have enter password (twice).
how can avoid this? thank you
you using -c option, short equivalent of long --symmetric option. not using public key cryptography using option, why asked password.
try changing -ac -a in script above.

Comments
Post a Comment