我如何检查我的OpenPGP密钥是否在Ubuntu密钥服务器中?

我正在将我的OpenPGP密钥添加到Launchpad的过程中,我刚刚将它上传到Ubuntu的密钥服务器。现在,只有当密钥通过密钥服务器可用时,我才能继续进行。有没有办法检查是否已经到达这种情况?
2个回答

命令行方式:
运行: ``` gpg --keyserver hkp://keyserver.ubuntu.com --search-key 'your@mail.com' ```

图形化方式:

  • 运行 seahorse密码和加密密钥),点击查找远程密钥...按钮,在搜索框中输入您的密钥ID,最后只选择Ubuntu密钥服务器:

    enter image description here


只通过keyIDs进行检查:

gpg -i --batch --keyserver <keyserver> --recv-keys <keyIDs>

--keyserver <keyserver> => This is the server that gpg communicates with to receive keys, send keys, and search for keys
--recv-keys <keyIDs>    => Import the keys with the given keyIDs from a keyserver.
--batch                 => Don’t invoke a pinentry or do any other thing requiring human interaction.
-i                      => Asks before importing key.