Sign git commits with ssh-key while ssh'd into a server?
I have recently setup git-commit-signing with 1password, which is nice. Unfortunately, I cannot create and sign commits when I'm ssh'd into a server, since it doesn't have 1password installed.
The ssh-key is being forwarded to the server with ssh-agent-forwarding. So it should be "accessible" on the server, in my naive understanding.
As per the https://developer.1password.com/docs/ssh/git-commit-signing/, the signing program is configured as /opt/1Password/op-ssh-sign. This doesn't exist on the server.
I wonder if it's possible to write a little script that signs a commit with the key coming in from the ssh-agent? I wouldn't
But I also might just be going about it in the wrong way, I'm open to other approaches. The goal I'm trying to achieve is to be able to sign commits on a server I'm ssh'd into with the ssh-key stored in 1password. Maybe I should just install 1password CLI on the server? I would prefer not to, but I guess it's an acceptable solution if that's the only way.
1Password Version: 8.10.23
Extension Version: Not Provided
OS Version: Not Provided
Browser: Not Provided
