LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   The right gpg command order doesn't work (https://www.linuxquestions.org/questions/linux-software-2/the-right-gpg-command-order-doesnt-work-4175580140/)

Yetoo 05-18-2016 09:07 PM

The right gpg command order doesn't work
 
I am following a tutorial on how to send emails to outside email providers for mutt. One of the commands it says to type is: gpg -o .passwd -e .passwd.gpg. However when I enter the command I get: usage: gpg [options] --encrypt [filename]
The .passwd file is where it should be and I have tried other combinations such as gpg -e .passwd -o . passwd.gpg and get:
"You did not specify a user ID. (you may use "-r")

Current recipients:

Enter the user ID. End with an empty line:
gpg: Interrupt caught ... exiting"

This prompt was not mentioned on the tutorial. If anyone could enlighten me on how to fix this, that would be great and thank you for taking your time.

CaptSilver 05-18-2016 11:30 PM

Import public key: gpg --import public.key
Encrypt: gpg --encrypt --recipient 'their name' --recipient 'my_name' filename.txt
Decrypt: gpg --decrypt filename.txt.gpg

http://blog.ghostinthemachines.com/2...-command-line/


All times are GMT -5. The time now is 09:41 AM.