11 comments

  • maratc2 hours ago
    &gt; No key files (like ~&#x2F;.ssh&#x2F;id_ed25519.pub and friends) littering the file system; and there’s no risk of mistakenly deleting them either.<p>Or backing them up, or copying them to your new computer. You&#x27;re just one spilled coffee cup away from losing the key.
    • jwr1 hour ago
      That was my first thought, too — this might work as one of additional methods of logging in, but not as the only one.<p>I have been using YubiKeys for many years now, following this guide: <a href="https:&#x2F;&#x2F;github.com&#x2F;drduh&#x2F;YubiKey-Guide" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;drduh&#x2F;YubiKey-Guide</a><p>This means I can have secure private keys for ssh and gpg (cue the crowd saying gpg is insecure without offering good modern alternatives), which I can also back up. And I can set up multiple YubiKeys, which I do.<p>An additional advantage of this solution is that you can set your YubiKey to require a touch confirmation before performing an operation. This makes it much harder for runaway AI agents to wreak havoc on your servers: there is a physical limitation, which I really like.
    • rustyhancock1 hour ago
      Yes I don&#x27;t see how that&#x27;s helpful.<p>It&#x27;s quite opposite of what I&#x27;d want.<p>If you use a trezor hardware wallet (and probably other hardware wallets) you can deterministically regenerate -sk keys.<p>I use trezors various agents for AGE, FIDO2&#x2F;passkey, ssh[0].<p>But you still need the backup some bits of material like stubs for some FIDO keys (not secret material) that need importing into fresh trezor devices.<p>It&#x27;s approaching the never lose a key again levels.<p>Of course, I won&#x27;t pretend there isn&#x27;t an obvious issue. What if you lose the seed words or someone gains access. What if the software becomes incompatible, or trezor devices become expensive&#x2F;change etc.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;romanz&#x2F;trezor-agent" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;romanz&#x2F;trezor-agent</a>
      • littlecranky671 hour ago
        <i>cough</i> ledger, <i>cough</i> coldcard <i>cough</i>, supply chain attacks <i>cough cough</i>
        • rustyhancock47 minutes ago
          This attack on ledger was particularly impressive, with LTE modules and eSIMs used to exfiltrate secret material[0].<p>But ledger is one I wouldn&#x27;t recommend even without these issues, they&#x27;ve previously stockpiled customer data which leaked and lead sustained targeted attacks on their customers.<p>They&#x27;ve got some sort of method of getting the secret keys out of the secure elements - which makes you think what&#x27;s the point at all? Oh so they can sell you a backup service subscription for your keys. Which were meant to never leave your device.<p>[0] <a href="https:&#x2F;&#x2F;www.coindesk.com&#x2F;tech&#x2F;2026&#x2F;10&#x2F;13&#x2F;ledger-says-spy-chip-inside-cryptobilis-ledger-devices-transmitted-wallet-keys-over-mobile-network" rel="nofollow">https:&#x2F;&#x2F;www.coindesk.com&#x2F;tech&#x2F;2026&#x2F;10&#x2F;13&#x2F;ledger-says-spy-chi...</a>
    • jiehong2 hours ago
      Yes, this only works if you can register more than 1 ssh keys on the services you want.
      • mschuster9148 minutes ago
        Which you can do pretty much anywhere already? I&#x27;m at least not aware of any major service not allowing you to register multiple SSH public keys.<p>With the obvious exception being, for whatever reason, AWS that only allows specifying ONE SINGLE KEYPAIR when creating new EC2 VMs. Whyyyyyyyyyyyyyy?!
        • maratc45 minutes ago
          When I was checking out their git hosting service (AWS CodeCommit), they only allowed for rsa keys (and not ed25519, for example.)
  • pentakkusu11 minutes ago
    No way, I just wondered if there is a way to do this myself... Having to type in my password was getting tedious for my lazy self.
  • XYen0n23 minutes ago
    The version of OpenSSH included with macOS does not support FIDO-related features and instead uses the relevant parameters to access the macOS Keychain, so I always have to install OpenSSH from nixpkgs myself.
  • gurjeet45 minutes ago
    Just in case it helps someone, a while ago I wrote a blog post with exact CLI invocations to set up a local-password-store protected by TouchID. If you wish, the encrypted password-store can be backed up and tracked with a Git.<p>&gt; PasswordStore (`pass`) + GnuPG (`gpg`) + TouchID<p>&gt; <a href="https:&#x2F;&#x2F;gurjeet.singh.im&#x2F;blog&#x2F;passwordstore+gnupg+touchid" rel="nofollow">https:&#x2F;&#x2F;gurjeet.singh.im&#x2F;blog&#x2F;passwordstore+gnupg+touchid</a>
  • QGQBGdeZREunxLe2 hours ago
    Sounds complicated. Just install <a href="https:&#x2F;&#x2F;secretive.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;secretive.dev&#x2F;</a>
    • Puts1 hour ago
      It&#x27;s literately TWO shell commands? One for generating the key in the secure enclave and one for adding it to ssh-agent?
  • apimade1 hour ago
    Crazy that this particular feature we’ve all been waiting for hasn’t received first-party support by any DevEx company.<p>You know, the companies that say security is their number one priority, or companies that scream “developers, developers, developers”. How Google and Apple didn’t come up with something together eludes me, but then again, we have entire ecosystems and categories deployed in the areas they don’t service (auth, application control, etc).
  • ggm4 hours ago
    If you do this, have at least one backup key (if need be on paper) or a guaranteed alternate path into the hosts you depend on this key to access. Because if the secure enclave is as good as we&#x27;re told, if you lose access to -&gt;THIS&lt;- secure enclave, its game over for the keys.<p>Secure enclave protecting Keychain, the keychain is backed up. Not the contents of the enclave.<p>Too many failed access attempts? <i>poof</i> the key is gone. Could be as low as 10.<p>(happy to be corrected. This is what I gather from a quick read-around. I was a bit surprised the site didn&#x27;t seem to discuss this)
    • solatic2 hours ago
      Your backup key should also be in a secure enclave, just in a different secure enclave. Both keys should be accepted by the system.<p>The truly paranoid can multiple <i>types</i> of secure enclaves - TouchID for primary, a YubiKey for backup.<p>&gt; If need be on paper<p>Your security is only as strong as its weakest link. Paper has a way of getting photographed, and the privacy of your key depends on your OCR software, unless you really want to painstakingly copy it in by hand, and even then, it turns into a file-based key on the filesystem, with all its attendant risks.
      • littlecranky671 hour ago
        No, paper for cold storage has the advantage of requiring physical access. Not some virus or hacker breaking into your computer from hundreds of miles away. If you are living in the US, gun ownership provides additional security over this piece of paper at home.
        • gmac41 minutes ago
          Right, because shooting someone for the sake of a piece of paper is usually a proportionate response …
  • vr462 hours ago
    As cool as this is, this does limit the functionality of your keys, because not everything can access the secure enclave in the way it wants to - and as others point out, this is a one-way street and locks your mac hardware into the flow.<p>I went with this system for some months but it ultimately broke my workflow. I switched to a system of my own devising, in which my local security key decrypts the SSH keys I require.
  • elmcrest2 hours ago
    happy 1Password user since years, provides this too and you&#x27;ll have you ssh keys in the 1P keychain (yes, not open source, I know - only flaw imho)
    • lmz2 hours ago
      That would make it extractable and syncable to other hosts. That&#x27;s fine if that&#x27;s what you want but it&#x27;s an important distinction.
      • elmcrest2 hours ago
        yes, that&#x27;s exactly what I want :) (and the private key is only living inside 1Password and isn&#x27;t extractable from there)
        • cromka42 minutes ago
          Typically you want to generate one key per host. That&#x27;s why, by default, a new key bears a user@host identifier.<p>If it gets compromised, you need to revoke this one key only and still maintain access from, presumably, other systems of yours.
        • lmz2 hours ago
          <a href="https:&#x2F;&#x2F;www.1password.dev&#x2F;ssh&#x2F;manage-keys#export-an-ssh-key" rel="nofollow">https:&#x2F;&#x2F;www.1password.dev&#x2F;ssh&#x2F;manage-keys#export-an-ssh-key</a>
        • mercutio22 hours ago
          You’re mistaken. 1Password syncs keys. Therefore, they’re extractable.
    • LetMeLogin1 hour ago
      I am doing the same, such a great underrated feature that many people do not know of.
  • rowancroft40 minutes ago
    [flagged]
  • rektlessness2 hours ago
    [dead]