上传GPG公钥时网络无法到达

发布于 2025-01-24 14:23:05 字数 475 浏览 1 评论 0 原文

我正在尝试上传我的GPG公钥,以便将我的Maven文物的发行释放到Maven Central。但是,当我运行以下命令时:

gpg --keyserver keyserver.ubuntu.com --send-keys E655AF47

我会收到以下错误:

gpg: sending key E655AF47 to hkp://keyserver.ubuntu.com
gpg: keyserver send failed: Network is unreachable
gpg: keyserver send failed: Network is unreachable

我在MacBook上使用GPG(GNUPG)2.3.6。

我在哪里出错?

I'm trying to upload my gpg public key in order to deploy releases of my Maven artifacts to Maven Central. But when I run the following command:

gpg --keyserver keyserver.ubuntu.com --send-keys E655AF47

I get the following error:

gpg: sending key E655AF47 to hkp://keyserver.ubuntu.com
gpg: keyserver send failed: Network is unreachable
gpg: keyserver send failed: Network is unreachable

I am using gpg (GnuPG) 2.3.6 on MacBook.

Where am I going wrong here?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

魄砕の薆 2025-01-31 14:23:05

看起来这些服务器不再允许这种机制...

首先,尝试明确指定 https 协议:

gpg --keyserver https://keyserver.ubuntu.com --send-keys E655AF47

如果也不起作用,则必须手动上传:

  1. 复制公共密钥:
gpg --armor --output public-key.gpg --export [email protected]
cat public-key.gpg | pbcopy

where where gpg -list-signatures 命令

  1. 转到 https://keyserver.ubuntu.com/
  2. 提交密钥按钮
  3. 粘贴您的公共密钥您已在第一步中使用 pbcopy 命令命令,然后将其验证
  4. 如下验证您的提交:

https://keyserver.ubuntu.com/pks/lookup?search=0D6866D45122F4B762BBA078CA756566F2B91BC1&fingerprint=on&op = index

其中 0D6866D45122F4B762BBA078CA756565656566F2B91BC1 您的 keyID 您也可以使用 gpg-list-list-list-list-signatures covels>

Looks like these servers not permit such mechanism anymore...

First, try to specify https protocol explicitly:

gpg --keyserver https://keyserver.ubuntu.com --send-keys E655AF47

If that is also not working, then you must upload it manually:

  1. copy your public key:
gpg --armor --output public-key.gpg --export [email protected]
cat public-key.gpg | pbcopy

where [email protected] you can find with gpg --list-signatures command

  1. go to https://keyserver.ubuntu.com/
  2. Click Submit Key button
  3. Paste your public key you've copied in 1st step with pbcopy command and submit it
  4. Verify your submission like so:

https://keyserver.ubuntu.com/pks/lookup?search=0D6866D45122F4B762BBA078CA756566F2B91BC1&fingerprint=on&op=index

where 0D6866D45122F4B762BBA078CA756566F2B91BC1 your keyid, which you can also find with gpg --list-signatures command

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文