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...
Former Member
3 years ago@mangus, have a look at the https://docs.blink.sh/advanced/advanced-ssh section of the Blink docs. If you want to use agent forwarding, you need to either use ssh -A
or set ForwardAgent
to YES
in your Blink host config (config -> Hosts -> [host] -> SSH Config).
To get my Mac to use the forwarded agent when I connect to it over SSH with Blink, but still use 1Password when I'm working on my Mac locally I've been using the following in my ~/.ssh/config
file:
ssh-config
Match host * exec "test -z $SSH_TTY"
IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
This sets 1Password as the IdentityAgent
only when $SSH_TTY
isn't set, which is the case when I'm working locally on my machine. When I SSH in using Blink with agent forwarding, $SSH_TTY
is set along with $SSH_AUTH_SOCK
(which is used by any commands, e.g., git
, to do SSH authentication).