SSH Agent won't list my Keys

Options
ElmR
ElmR
Community Member

Hello everyone,

I just started using op SSH agent on both windows and Mac, but there's an issue on Mac. Whenever I try to list my keys with the command ssh-add -l it returns The agent has no identities.
It works just fine on windows but I don't know what's the issue here on Mac.
Everything else works just fine, I can pull from git, push, etc.

Reading on the internet I tried with different approaches and noted that If I add IdentitiesOnly yes to the config file then ssh -T git@github.com will fail.

My config file looks like this:
Host * IdentityAgent "~/.1password/agent.sock"

Also I've turned off and on the agent, with no positive results.
The SSH key is stored under Personal vault.

Thanks in advance.


1Password Version: 8.10.3
Extension Version: Not Provided
OS Version: macOS Ventura 13.2.1
Browser:_ Not Provided

Comments

  • Could you try with the SSH_AUTH_SOCK environment variable set? ssh-add -l does not support SSH config hosts, because there is no host when running ssh-add.

  • ElmR
    ElmR
    Community Member
    Options

    Hey @floris_1P thank you for your answer.
    I had SH_AUTH_SOCK environment variable set already but for some reason it wasn't working. Did set it again and now its working :)

    Thank you for your help.

This discussion has been closed.