Hacker GitHub

← All repos

drduh/YubiKey-Guide

View on GitHub ↗ ★ 13,062 HTML

Community guide to using YubiKey for GnuPG and SSH - protect secrets with hardware crypto.

59 mentions on Hacker News by 38 people: 7 stories, 52 comments · first 2016-02-02 · latest 2026-10-30

Mentions per year 59 mentions · busiest year 2019 (13)
20082026
  1. I have been using Yubikeys for years, according to this guide: https://github.com/drduh/yubikey-guide The nice thing is that using the private key requires physical touch. That means that AI itself (or a remote attacker, for that matter)…
  2. …in, but not as the only one. I have been using YubiKeys for many years now, following this guide: https://github.com/drduh/YubiKey-Guide This means I can have secure private keys for ssh and gpg (cue the crowd saying gpg is insecure…
  3. ▲ 3
    Community guide to using Yubikey for GnuPG and SSH
    story by Doublon · 2026-04-16 · 0 comments
  4. For Yubikey, this guide is worth looking at: https://github.com/drduh/yubikey-guide ("Community guide to using YubiKey for GnuPG and SSH - protect secrets with hardware crypto.")
    comment by rehevkor5 · 2026-04-16 · in Put your SSH keys in your TPM chip
  5. …my secret keys printable if needed. And I want to store them securely on YubiKeys once generated ( https://github.com/drduh/YubiKey-Guide ). I want to be able to encrypt my backups to multiple recipients. And I want the same keys (stored…
    comment by jwr · 2025-12-28 · in Gpg.fail
  6. This is a good moment to remind everyone of this excellent guide: https://github.com/drduh/YubiKey-Guide it describes how to use your YubiKeys (please always use at least two, so that you have a backup) for GnuPG keys and SSH. I've been…
  7. At https://github.com/drduh/YubiKey-Guide?tab=readme-ov-file#co... , these options are not the most secure one. personal-cipher-preferences CHACHA20 AES256 AES192 personal-digest-preferences BLAKE2B SHA512 SHA384 SHA256…
  8. This guide [1] mostly follows the practices the previous poster outlined. [1] https://github.com/drduh/YubiKey-Guide
  9. Nothing specific to pass. It’s just Yubikey setup with GPG; that’s part of the appeal! https://github.com/drduh/YubiKey-Guide This guide covers many adjacent topics; the relevant part is generating the secret key inside Yubikey, or in an…
    comment by aborsy · 2025-09-14 · in Pass: Unix Password Manager
  10. …I only ever have to unlock a single secret, which in my case is my GPG keys on my Yubikey devices: https://github.com/drduh/YubiKey-Guide
    comment by jxpx777 · 2023-10-16 · in Organizing multiple Git identities
  11. …Yubikey gives out. FIDO2 and all other regular Yubikey functionality still work with it. [1]: https://github.com/drduh/YubiKey-Guide
    comment by woadwarrior01 · 2023-09-29 · in Ask HN: Why does YubiCo need my private key?
  12. The excellent guide by drduh should be mentioned here: https://github.com/drduh/YubiKey-Guide — I've been using this approach for years to store my OpenPGP keys on Yubikeys and use them for SSH. I don't generate my keys on devices. That…
    comment by jwr · 2023-09-15 · in An Opinionated Yubikey Set-Up Guide
  13. ▲ 1
    Guide to Using Yubikey for GPG and SSH
    story by anotherhue · 2023-07-31 · 0 comments
  14. If you are looking to do something similar with a Yubikey check out https://github.com/drduh/YubiKey-Guide for getting started. It is by far the most comprehensive guide on using a YubiKey as a SmartCard for storing GPG keys. I used this a…
    comment by jdoss · 2023-03-28 · in OpenPGP master key on Nitrokey Start
  15. According to this: * https://github.com/drduh/YubiKey-Guide#configure-smartcard ... it is: gpg --card-edit
    comment by upofadown · 2023-03-10 · in How to Yubikey
  16. …Keys stored on the Yubikey and used as the SSH keys. Check the Repo of drduh as a starting point https://github.com/drduh/YubiKey-Guide#ssh
  17. There's a fairly excellent guide on creating a robust key system here: https://github.com/drduh/YubiKey-Guide . Primary and backup Yubikey for use, offline cert keys, and paper backups. If you're wanting to protect things further you can…
  18. …0 issues with it on Linux. Just followed the arch wiki setup and this random guide I found: https://github.com/drduh/YubiKey-Guide . I use it daily to ssh into hosts and sign git commits. On Windows, it's a bit more involved, of course,…
  19. You can check this guide: https://github.com/drduh/YubiKey-Guide
  20. And I’d though everyone else also kept their gpg and ssh keys on Yubikeys[1]. [1]: https://github.com/drduh/YubiKey-Guide
  21. That's why I prefer using Yubikeys (using this setup: https://github.com/drduh/YubiKey-Guide ) — and this method times out immediately (just press esc when the "insert card" dialog comes up). Plus you can have multiple keys. Plus you can…
  22. …my keys for at least two years. But the right approach anyway is to use this excellent tutorial: https://github.com/drduh/YubiKey-Guide and generate your keys yourself, storing a backup in a secure location. This is what I do — so even if…
    comment by jwr · 2022-06-07 · in Apple Passkey
  23. …don't want to use GPG, the guide also has a section[2] about just using an SSH key as well. [1]: https://github.com/drduh/YubiKey-Guide [2]: https://github.com/drduh/YubiKey-Guide#ssh
    comment by seodisparate · 2022-05-30 · in How to Store an SSH Key on a Yubikey
  24. …the PGP applet of the YubiKey, which exposes a regular RSA key. This guide has worked well for me: https://github.com/drduh/YubiKey-Guide You can jump to the SSH sections if that's all you're after. There's a missing piece for Windows,…
    comment by vladvasiliu · 2022-05-30 · in How to Store an SSH Key on a Yubikey
  25. …a GPG key stored on a YubiKey[1] and even if you comprise the machine you don't get the keys. 1. https://github.com/drduh/YubiKey-Guide
    comment by deadbunny · 2022-05-05 · in GitHub will require 2FA by the end of 2023
  26. This community ran GitHub guide is a bit more up to date, and has troubleshooting in the Issues: < https://github.com/drduh/YubiKey-Guide >
    comment by grlass · 2022-04-12 · in Yubikey All the Things
  27. Covered by the guide: see https://github.com/drduh/YubiKey-Guide#using-keys and look for "Encrypt a message to your own key". Also, sops ( https://github.com/mozilla/sops ) works with gpg and so with Yubikeys.
    comment by cuu508 · 2022-01-26 · in Guide to Using YubiKey for GPG and SSH
  28. ▲ 274
    Guide to Using YubiKey for GPG and SSH
    story by simonpure · 2022-01-26 · 92 comments
  29. …be done with yubikey. Passwords stored encrypted on disk and get decrypted on the yubikey with gpg. https://github.com/drduh/YubiKey-Guide https://attackpointsecurity.com/go-pass-yubikey-and-gpg
  30. …which allows you to both use it to sign or encrypt with gpg and also to use it as an ssh key. [1] https://github.com/drduh/YubiKey-Guide
  31. Yep, I followed the guide here: https://github.com/drduh/YubiKey-Guide Means I can SSH into any box that has that key on it, or push/pull repos from anywhere as long as I have a yubikey with me. I also used…
  32. https://github.com/drduh/YubiKey-Guide
  33. Anything similar to https://github.com/drduh/YubiKey-Guide for what you have just described? I am willing to use what I can understand, backup and operate, and yubikey+gpg seems to be it because of this guide. Anything practical for what…
  34. …you are interested in a fantastic walk through of using a Yubikey with your GPG/SSH keys check out https://github.com/drduh/YubiKey-Guide I am also really looking forward to the YubiKey Bio getting released too.
  35. ▲ 5
    Guide to Using YubiKey for GPG and SSH
    story by cuu508 · 2021-01-01 · 0 comments
  36. …if (like me) you only store your secret keys on a physical device, as described for example here: https://github.com/drduh/YubiKey-Guide , then you have nothing to worry about, because your secret key does not reside anywhere where it's…
  37. YubiKeys are absolutely fantastic, and under-rated, too. I used this guide: https://github.com/drduh/YubiKey-Guide to set up my YubiKeys with GPG keys that are also used as SSH keys. This gives me, in a single setup: * secure 2FA for sites…
  38. …bunch of Yubikeys, minimum of 2. 2. Create GPG keys and store them on YubiKeys. Follow this guide: https://github.com/drduh/YubiKey-Guide (if you want to, keep the secret keys, but in case of multiple YubiKeys I would not keep them…
  39. Windows users might find this useful: https://github.com/drduh/YubiKey-Guide
  40. Nice repo. For those starting from scratch with a YubiKey I always recommend this guide: https://github.com/drduh/YubiKey-Guide Then they know how this stuff works and how to fix it when it breaks.
    comment by dkanejs · 2019-11-13 · in Show HN: GPG on macOS and YubiKey
  41. …over generating a "classic" private/public keypair with for example a Yubikey [1]? [1] https://github.com/drduh/YubiKey-Guide
    comment by darkwater · 2019-11-05 · in OpenSSH's Support for U2F/Fido Security
  42. There's also DrDuh's pretty comprehensive guide https://github.com/drduh/YubiKey-Guide
    comment by cuu508 · 2019-10-31 · in Getting Started with Security Keys
  43. …steal my Yubikey (and know the PIN on it). If interested, I followed this guide to set it up: https://github.com/drduh/YubiKey-Guide/blob/master/README.md
    comment by PureParadigm · 2019-10-27 · in Public keys are not enough for SSH security
  44. ▲ 2
    Guide to Using YubiKey for GPG and SSH
    story by eaguyhn · 2019-10-17 · 0 comments
  45. …moving to Yubikey, then restore and repeat move to a new Yubikey). This is the guide I followed: https://github.com/drduh/YubiKey-Guide
    comment by eaguyhn · 2019-10-17 · in Stupid Unix Tricks
  46. …would let me use my existing (excellent) setup for using GPG keys stored on a Yubikey for ssh (see https://github.com/drduh/YubiKey-Guide for a great writeup of this approach).
    comment by jwr · 2019-06-11 · in Support for U2F security keys
  47. Another plug for: https://github.com/drduh/YubiKey-Guide
  48. If you are OK with using PGP keys, there is an excellent guide at https://github.com/drduh/YubiKey-Guide — I've been using this kind of setup for almost a year now and it works really, really well. Highly recommended. Be sure to set the…
  49. …drduh's guide mentioned above. In particular, for the touch feature there is this subsection: https://github.com/drduh/YubiKey-Guide#touch-to-authenticate See also: https://developers.yubico.com/PGP/Card_edit.html
  50. …of the post, and dismissed with "I did not like that very much"), see also drduh's Yubikey guide: https://github.com/drduh/YubiKey-Guide#ssh Note that the PIV approach used in the OP does not support RSA4096, while the OpenPGP approach…