Signing back into the Community for the first time? You'll need to reset your password to access your account. Find out more.
Forum Discussion
senekor
2 years agoNew Contributor
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...
senekor
2 years agoNew Contributor
rellek How does it work for you..? Part of the configuration is this, right?:
[gpg "ssh"]
program = /opt/1Password/op-ssh-sign
How is that supposed to work if 1password is not installed on the server? Or do you have 1password installed on the server?
Btw. I may have found a solution that works quite nicely for myself. Instead of ssh-ing into the server and editing files, making commits etc. with the software installed on the server, I can use sshfs to mount the server's file system into my local one. That way, I have access to all the software installed locally and it even uses my local configuration. I stumbled upon this technique while trying to reproduce the vscode remote ssh workflow with a terminal editor like helix. There are certainly a couple things that won't work like that, but git should be perfectly fine.