Forum Discussion

Former Member's avatar
Former Member
2 years ago

Git ssh signing not work

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

  • Former Member's avatar
    Former Member

    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.

  • Former Member's avatar
    Former Member

    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-----
    ```