Adding a key to gpg

What is the gpg command to add a public key to your keychain on Linux?

Thanks,
Zumpoof
zumpoofAsked:
Who is Participating?
 
XoFCommented:
For importing a key to the keyring from a file:
gpg --import <filename>

For importing/receiving a key from a keyserver:
gpg --keyserver <server> --recv-keys <key-ID>

HTH,

-XoF-
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.