Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

load a pgp/gpg key to a linux server

Status
Not open for further replies.

sasuser2006

Technical User
May 8, 2006
32
US
Hey everybody...sorry for the dumb question but I need to know how to load a pgp/gpg key to a linux server that has gpg installed. Is there a specific directory that i paste the key into...i.e.../var/, /usr/, /bin/, etc.

Any help would be great and thanks in advance.

Have a great day.
 
you use the command

Code:
gpg --import your_key_file

Cheers

QatQat

Life is what happens when you are making other plans.
 
Thanks. The key seems to have imported correctly. Is there any way to check if the key is in place?

Also when running...

sudo -u gpg /usr/bin/gpg --homedir= /u01/home/mydir/.gnupg/ --no-tty --encrypt --recipient "RECIPIENT_KEY" < test.txt > test.txt.gpg

where RECIPIENT_KEY is the key referenced on import

I get this error...

sudo: no passwd entry for gpg!

Is there something wrong with the command I'm using?

Thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top