Oriel — AI & technology worth noticing, every day.

Setting Up SSH Keys on macOS with Touch ID

Web page · https://nmattia.com/posts/2026-10-19-setting-up-ssh-keys-touch-id

First seen by Oriel on .

AI summary

The post explains how to create a Touch ID-protected, non-extractable SSH identity in the macOS Secure Enclave and use it for SSH and GitHub authentication.

  • Create the identity with `sc_auth create-ctk-identity -l ssh-key -k p-256-ne -t bio`, then register it with `ssh-add -K -S /usr/lib/ssh-keychain.dylib`.
  • `ssh-keychain.dylib` lets the SSH agent load resident public keys and request signatures from the Secure Enclave; authentication prompts for Touch ID.
  • Use `ssh-add -L` to retrieve the public key for services such as GitHub; re-add the identity to the agent after a reboot.
  • The private key cannot be extracted, but it is tied to the Mac: if the Mac dies, the identity must be recreated and registered again.
  • The author notes that much of the mechanism is undocumented and that choosing `none` instead of `bio` allows silent key use.

#macos #ssh #secure enclave #touch id

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Points

Score reported by the source.

  • Hacker News: 91, latest observation ; +81 over observed period since
  • Lobsters: 68, latest observation ; +65 over observed period since

Comments

Comment count reported by the source.

  • Hacker News: 49, latest observation ; +47 over observed period since
  • Lobsters: 26, latest observation ; +25 over observed period since

Aliases

SourceExternal IDURL
Hacker News50175882https://nmattia.com/posts/2026-10-19-setting-up-ssh-keys-touch-id/ Read discussion
Lobstersd7m5j1https://nmattia.com/posts/2026-10-19-setting-up-ssh-keys-touch-id/ Read discussion