--recv-keys
option, bob gets the key directly from the server:
[bob@yohost bob]$ gpg --recv-keys --keyserver pgp.mit.edu DB42A60E gpg: requesting key DB42A60E from pgp.mit.edu ... gpg: key DB42A60E: public key imported gpg: /home/bob/.gnupg/trustdb.gpg: trustdb created gpg: Total number processed: 1 gpg: imported: 1
[bob@yohost bob]$ gpg --list-keys /home/bob/.gnupg/pubring.gpg ---------------------------- pub 1024D/3240A1F8 2002-12-16 Bob Smith (User Bob)sub 1024g/C16A012B 2002-12-16 pub 1024D/DB42A60E 1999-09-23 Red Hat, Inc sub 2048g/961630A2 1999-09-23
[bob@yohost bob]$ lwp-download http://www.linuxchick.org/pubkey.txt 1.33 KB received
[bob@yohost bob]$ gpg --import pubkey.txt gpg: key 7776E936: public key imported gpg: Total number processed: 1 gpg: imported: 1
[bob@yohost bob]$ gpg --list-keys /home/bob/.gnupg/pubring.gpg ---------------------------- pub 1024D/3240A1F8 2002-12-16 Bob Smith (User Bob)sub 1024g/C16A012B 2002-12-16 pub 1024D/DB42A60E 1999-09-23 Red Hat, Inc sub 2048g/961630A2 1999-09-23 pub 1024D/7776E936 2002-10-04 Mandi Walls sub 1024g/E0524E3E 2002-10-04
Back Up Next | http://www.linuxchick.org/gpg |