Posted over 1 year ago. Visible to the public.
How to encrypt and decrypt GPG mails in the terminal
gpg -e -a -r <firstname.lastname@example.org> [-r <email@example.com>] <type message> <ctrl d>
Now copy the PGP message to your mail client and send that mail.
- You need one
-rflag per receiver address
- With a single receiver, you can also write
gpg -ear firstname.lastname@example.org
gpg -d <paste encrypted message> <ctrl d>
gpg --keyserver keyserver.ubuntu.com --search-keys <email@example.com> <number of the search result that should be imported>