LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-18-2016, 10:07 PM   #1
Yetoo
Member
 
Registered: Dec 2015
Distribution: Fedora, Debian, Ubuntu, couldn't install gentoo
Posts: 33

Rep: Reputation: Disabled
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.
 
Old 05-19-2016, 12:30 AM   #2
CaptSilver
LQ Newbie
 
Registered: Nov 2007
Distribution: Ubuntu 16.04 amd64
Posts: 21

Rep: Reputation: 1
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/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] [SOLVED] bash script: can echo command, command works if I type, but command doesn't work in script ... why? hopeless_n00b Linux - Newbie 10 07-12-2018 06:57 AM
at command doesn't work RuijunFan Linux - Newbie 4 08-10-2015 12:11 PM
why doesn't work this command? baby_ Linux - General 5 12-13-2009 08:16 AM
GPG: Bad session key gpg between gpg on linux and gpg gui on windows XP konqi Linux - Software 1 07-21-2009 10:37 AM
File / picture viewing order !!! doesn't work! xoros Linux - Software 1 05-03-2009 08:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration