Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i used this command to decrypt my file

gpg -d myfile.gpg

it asked me for passphrase when i entered it showed me the content of the file

now when i run the command again it did not ask me the passphrase and directly decrypted the file

how can i reduce the passphrase remember time.


Is there any way to do this through command line or every from a software.

share|improve this question
up vote 1 down vote accepted

With --no-use-agent you are always asked for a passphrase:

gpg --no-use-agent -d myfile.gpg
share|improve this answer
c_korn Man you rock !!! – Iori Feb 17 '13 at 12:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.