Forum Discussion

beamer908's avatar
beamer908
New Member
6 days ago

SSH agent not working from `.ssh/config` in macOS

This worked until recently but I'm no longer able to load identities when using the following in my `.ssh/config` file:

Host *
  IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
$ ssh-add -l
The agent has no identities.

But I can confirm it works fine with:

SSH_AUTH_SOCK=~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock ssh-add -l

I've double checked the paths and permissions on the .ssh/config file but can't figure this out. Trying to figure out if this is a 1Password issue or an SSH issue. Seems like the latter. Any ideas?

1 Reply

  • Hmm, before today I wasn't able to use the actual keys with just the IdentityAgent configuration but now I am. It correctly prompts for key use in 1Password. However, without the `SSH_AUTH_SOCK`, I'm not able to see the identities. Is it always required to use the `SSH_AUTH_SOCK` for  `ssh-add -l` to work? I don't remember using t hat variable in the past.