2

我正在尝试设置我的私人 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 push.gpgSign

git config receive.certNonceSeed "<nonce seed here>"

我在客户端机器上执行以下命令:

  1. git add -A

  2. git commit -S -m "Message here"

  3. 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-receive-pack

我查看了使用 git push 的文档,man git-pushman git-receive-pack我仍然感到困惑。

user.signingkey我只是想确保我可以使用我使用配置选项设置的 GPG 私钥对我的 git 推送请求进行 GPG 签名

4

0 回答 0