Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

The following script works on a windows server :

pgp --encrypt TESTDIR\TESTPgp.txt -r issucnc

How would I make the same code to work on a linux server if I wanted to transfer a file from linux to windows? Do I need to install something for this?

Or is PGP already installed and available in linux? How would I know if it is?

I have done my assignment. I have read things on PGP but the only thing that is clear to me is that it is used for encryption. On what exactly the output of the above code, I don't know.

Please help me. I would really appreciate your help and understanding that I am a complete noob at this.

Thank you so much.

share|improve this question

migrated from May 13 '12 at 9:24

This question came from our site for professional and enthusiast programmers.

This isn't "code" and, as such, does not belong here. – Mahmoud Al-Qudsi May 13 '12 at 8:50

On Linux, the most common OpenPGP implementation is GnuPG:

gpg --recipient issucnc --output TESTDIR/TESTPgp.txt.pgp --encrypt TESTDIR/TESTPgp.txt

or a shorter version

gpg -r issucnc -o TESTDIR/TESTPgp.txt.pgp -e TESTDIR/TESTPgp.txt

Of course, you have to gpg --import the public key of issucnc first.

share|improve this answer

Your Answer


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