SSH agent not working - always only ssh password

CarOli
CarOli
Community Member

I followed the guides to setup 1password's SSH agent and under Settings it shows running.

In ~/.ssh/config I put

Host *
  IdentityAgent "~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock"

Tried both: with and without the quotes.

But calling ssh -T me@internal-host in native macOS Terminal app or iTerm always prompts for the password of the user, no interaction to unlock 1password.


1Password Version: 8.10.54
Extension Version: Not Provided
OS Version: macOS 15.1.1
Browser: Not Provided

Comments

  • Michael Mercurio
    Michael Mercurio
    Community Member
    edited December 13

    Sounds like maybe a configuration issue with SSH public key authentication for the user and host you're ssh'ing to?

    Assuming you have your SSH public key configured properly to login to internal-host, adding -v option to the ssh command (e.g., ssh -Tv me@internal-host) will enable verbose logging for SSH and give you some idea of what the problem is.

    Personally, I find it easier to set the environment variable SSH_AUTH_SOCK in my login shell, rather than adding it to ~/.ssh/config. You might try this as an alternative way to use 1Password's SSH Agent:

    export SSH_AUTH_SOCK=~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock
    

    You should be able to list the SSH keys stored in 1Password's SSH agent using:

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

    If the above command successfully lists your SSH keys stored in 1Password, then try using the SSH_AUTH_SOCK environment variable with the ssh command.