Level up your business security with free, on-demand training and certification. Explore 1Password Academy today →
Forum Discussion
Anonymous
4 years agoSSH Agent Forwarding
I'm really enjoying using 1Password as a ssh-agent with biometric unlock. I'm wondering if it's possible forward the SSH agent though.
Scenario:
I have two macs with 1Password setup with biomet...
jgoz
3 years agoNew Contributor
Here's a simple redirect script that I use as my gpg.ssh.program setting in gitconfig. It's based on floris_1P's comment above and can be used as a placeholder until op-ssh-sign supports this natively:
git-ssh-sign
```
!/bin/bash
if [[ "$SSH_CONNECTION" ]] && [[ "$SSH_AUTH_SOCK" ]]; then
ssh-keygen "$@"
else
/Applications/1Password.app/Contents/MacOS/op-ssh-sign "$@"
fi
```
In gitconfig:
[gpg "ssh"]
program = /path/to/git-ssh-sign