| 1 | = prepare Yubikey with GPG and SSH keys = |
| 2 | |
| 3 | This article is largely based on [https://www.esev.com/blog/post/2015-01-pgp-ssh-key-on-yubikey-neo/ Eric Severance's blog entry], but updated for gpg2 and my own requirements. |
| 4 | |
| 5 | Create .gnupg dir and set correct privileges: |
| 6 | {{{ |
| 7 | mkdir ~/.gnupg |
| 8 | chmod 700 ~/.gnupg |
| 9 | }}} |
| 10 | |
| 11 | Install pinentry-tty and modify gpg-agent.conf to get rid of annoying Gnome Shell password prompt. |
| 12 | |
| 13 | Create ~/.gnupg/gpg-agent.conf with following content: |
| 14 | {{{ |
| 15 | pinentry-program /usr/bin/pinentry-tty |
| 16 | }}} |