Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Former Member
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