Skip to content
← Back to activity

Public problem

Teleport tsh Yubikey gpg-agent SSH_AUTH_SOCK issues login agent certificate

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

When gpg-agent is running (used by Yubikeys to hold keys), tsh adds SSH certificates to the agent, which gpg-agent does not understand (gpg-agent does not support SSH certificates). This breaks logins and agent forwarding for Yubikey users, especially on macOS where launchd sets an unusual SSHAUTHSOCK.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

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