SSH Agent forwarded to Docker container only attempts to use the first SSH key
I have the SSH agent forwarded into a Docker container with the following config:
volumes:
- '~/.ssh:/.ssh:ro'
- '~/.ssh/known_hosts:/.ssh/known_hosts:rw'
- '${SSH_AUTH_SOCK_HOST:-/run/host-services/ssh-auth.sock}:/ssh-auth.sock:ro'
environment:
SSH_AUTH_SOCK: /ssh-auth.sockAnd the IdentityFile symlinked in an entrypoint script:
mkdir -p "$HOME/Library/Group Containers/2BUA8C4S2C.com.1password/t"
ln -sf "$SSH_AUTH_SOCK" "$HOME/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"This is working and if I run "ssh-add -l" inside the container, I can see all the available keys.
However, whenever the container requires SSH, the 1Password prompt is always for the same key (the first key listed by "ssh-add -l") and not the actual required key.
