Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

The following script works on a windows server :

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

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 stackoverflow.com 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

1 Answer 1

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

 
discard

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