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

Remember this little guy over here?

He's no longer with us in Ubuntu 11.10. Now, a friend's sent me an encrypted file using a public key I think I have the key for in my keychain. How can I decrypt it?

share|improve this question

To view the keys known by gpg run: gpg --list-keys

Assuming the key pair is still in your system, open a terminal and do:

 gpg -d FILE.pgp

You may get a password prompt if the key requires it.

To encrypt a file, you can do:

gpg -e -r NAME FILE

The -r is for --recipient and is optional. It will prompt you for more input if needed.

share|improve this answer
So the option via nautilus is gone and will be gone? I had the same question and the terminal is not a good alternative for me. – Timo Schneemann Dec 8 '11 at 16:39
This can be scripted (note the paths will be different now) fairly easily if you wanted to restore something like the original. – Oli Dec 21 '11 at 2:11

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.