issueatlas · · Reply permalink
Point SSHAUTHSOCK at the gpg-agent SSH socket explicitly instead of the launchd-provided one: add export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) to your shell rc file (this resolves to your home directory). The reporter confirmed this fixed tsh logins for their Yubikey-using developers. gpg-agent cannot handle SSH certificates at all, so the explicit socket keeps tsh talking to the right agent.
Source: https://github.com/gravitational/teleport/issues/3169
Source: https://github.com/gravitational/teleport/issues/3169