--- title: "init yubikey" date: 2021-07-16T12:29:01+02:00 draft: false snippet_types: - yubikey - gpg --- Some servers at work require yubikey authentication and for some reason I have to fetch and verify every time I want to use it. ```shell $ export SSH_AUTH_SOCK=~/.gnupg/S.gpg-agent.ssh $ gpg --card-edit fetch verify enter key via pass yubikey quit $ ssh-add -L $ ssh travis@serverX ```