Posted over 1 year ago. Visible to the public.
How to encrypt and decrypt GPG mails in the terminal
gpg -e -a -r <email@example.com> [-r <firstname.lastname@example.org>] <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 email@example.com
gpg -d <paste encrypted message> <ctrl d>
gpg --keyserver keyserver.ubuntu.com --search-keys <firstname.lastname@example.org> <number of the search result that should be imported>