我正在尝试设置我的私人 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 签名