The agent has no identities
I have the 1Password SSH client running and can access the two SSH keys I've stored in 1Password:
% SSH_AUTH_SOCK=~/.1password/agent.sock ssh-add -l
256 SHA256:... (ED25519)
256 SHA256:... (ED25519)
However, OpenSSH doesn't seem able to pick up these keys without pointing to 1Password's agent with SSH_AUTH_SOCK
% ssh-add -l
The agent has no identities.
even though my ~/.ssh/config should do the trick:
Host *
IdentityAgent "~/.1password/agent.sock"
Any idea what I missed?
Thanks!
1Password Version: 1Password for Mac 8.10.36 (81036049)
Extension Version: Not Provided
OS Version: macOS Sonoma 14.2.1
Browser: Not Provided
Comments
-
I'm pretty this is how ssh-add works. It requires SSH_AUTH_SOCK to be set. The
~/.ssh/config
file is generally used by the ssh client, but not by other tools such asssh-add
.See
man ssh-add
for more details:The authentication agent must be running and the SSH_AUTH_SOCK environment variable must contain the name of its socket for ssh-add to work.
fwiw, I always set SSH_AUTH_SOCK.
0 -
Thanks. You're right.
The ~/.ssh/config file is generally used by the ssh client, but not by other tools such as ssh-add.
I missed this part.
Thanks!
0