git - 如何设置 Git SSH 服务器到 GPG 签署 Git 推送请求?
问题描述
我正在尝试设置我的私人 git SSH 服务器以接受 GPG 签名的推送请求。
我试图按照康斯坦丁的指示:https ://people.kernel.org/monsieuricon/signed-git-pushes
在我的服务器机器config
上,我按照 Konstantin 的建议在我的服务器上配置了 git 存储库的文件:
[core]
repositoryformatversion = 0
filemode = true
bare = true
[receive]
advertisePushOptions = true
certNonceSeed = "<nonce seed here>"
[push]
gpgSign = true
在我的服务器和客户端机器上,我配置了以下内容:
git config receive.certNonceSeed "<nonce seed here>"
我在客户端机器上执行以下命令:
git add -A
git commit -S -m "Message here"
git push origin main --signed --repo=ssh://url_of_server:/path/to/repo
但是 git 会打印以下错误消息:
fatal: the receiving end does not support --signed push
当我git-receive-pack ../RaiderHacks/
在我的服务器上键入时,git 会打印以下内容:
我查看了使用 git push 的文档,man git-push
但man git-receive-pack
我仍然感到困惑。
user.signingkey
我只是想确保我可以使用我使用配置选项设置的 GPG 私钥对我的 git 推送请求进行 GPG 签名
解决方案
推荐阅读
- ios - MailCore2 IMAP - nw_socket_connect [C1.1:1] connectx 失败 (fd 8) [49: 无法分配请求的地址]
- azure-data-explorer - KQL / Azure Resource Graph Explorer:组合来自多条记录的值
- port - 是否可以使用 VLAN 进行端口转发?
- javascript - 无法访问对象的深层属性/值
- javascript - VB.Net - Selenium 在我要运行的页面上找不到 javascript 函数
- event-listener - 识别功能打开聊天 RD Station
- flutter - 错误:'AnimatedScale' 是从 /implicit_animations.dart' 和 'package:flutter_neumorphic/src/widget/animation/animated_scale.dart' 导入的
- javascript - AWS Amplify 托管 Nuxt 应用程序的构建不会因错误而失败
- authentication - 安全地使用 JSON Web 令牌以编程方式将用户从一个系统验证到另一个系统
- python - 如何在 tkinter 中没有文本的按钮上添加图像?