How to import keys from a keyserver using gpg in debian?

gpg --keyserver pgp.mit.edu --recv-keys DAD95197

is supposed to import keys matching DAD95197 from the MIT keyserver. However the MIT keyserver often has availability issues so it’s safer to configure another keyserver.

I generally use the SKS pools; here are their results when looking for “ashish”. To import the key from there, run

gpg --keyserver pool.sks-keyservers.net --recv-keys FBF1FC87DAD95197

(never use the short key ids, they can easily be spoofed).

This answer explains how to configure your GnuPG installation to always use the SKS pools.

Tags:

Debian

Pgp

Gpg