Skip to main content
December 14, 2023
Question

Git ssh signing not work

  • December 14, 2023
  • 2 replies
  • 419 views

here is my .gitconfig
```
[user]
signingkey = ssh-ed25519 *******
email = "{mail1}"
name = "****"

[gpg]
format = ssh

[gpg "ssh"]
program = "/mnt/c/Users/*/AppData/Local/1Password/app/8/op-ssh-sign-wsl"
allowedSignersFile = /home/
*/.ssh/allowed_signers

[commit]
gpgsign = true

[pull]
rebase = false
[core]
sshCommand = ssh.exe

and my `allowed_signers`

{mail1} ssh-ed25519 ********
``
but after I run
git log --show-signatureto check sign locally, it showsCould not verify signature.`


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser: Not Provided

2 replies

December 14, 2023

And if I run git cat-file commit HEAD
it displays the correct signing
```
tree c7ab563e653d3b0222846f18654c2e5e98635cf8
author hydrostic <{mail1}> 1702545860 +0800
committer hydrostic <{mail1}> 1702545860 +0800
gpgsig -----BEGIN SSH SIGNATURE-----


-----END SSH SIGNATURE-----
```

January 4, 2024

I am having the same issue. If i REMOVE this part form .gitconfig

program = "/mnt/c/Users/****/AppData/Local/1Password/app/8/op-ssh-sign-wsl"

then VERIFY works, but then SIGNING does not work.