export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) Test SSH:
Reader ...........: Yubico YubiKey OTP+FIDO+CCID 0 Application ID ...: D276000124010200... Version ..........: 3.4 Manufacturer .....: Yubico If not detected, restart pcscd : gpg dongle setup
gpg --card-status Expected output shows: keytocard Select destination slot (1=Sign
enable-ssh-support Restart and add to shell profile ( ~/.bashrc or ~/.zshrc ): gpg dongle setup
brew install gnupg ykman pinentry-mac :
sudo systemctl restart pcscd Edit ~/.gnupg/scdaemon.conf :
gpg --edit-key YOUR_KEYID gpg> keytocard Select destination slot (1=Sign, 2=Encrypt, 3=Authenticate). Repeat for each subkey. Extract the authentication key for SSH: