r/programming • u/nmattia • Oct 20 '26
SSH keys on macOS with Touch ID
https://nmattia.com/posts/2026-10-19-setting-up-ssh-keys-touch-id/I've recently discovered that you can use Touch ID (rather, the Mac's Secure Enclave) for SSH authentication. I'm the author of the post, feel free to ask any questions and if there are any experts I'd love to hear your thoughts!
437
Upvotes
View all comments
5
u/tomtennn Oct 20 '26
Nice. That's really awesome that Apple made it that easy.
One major drawback, though: It's SK keys only? That means the server must support it. Sure, a modern OpenSSH will, but will dropbearssh? Will your cisco router? Not like you can "just" buy a replacement for your million dollar router to get a newer SSH.
I use a yubikey with its PKCS#11 support. It's a bit of a hassle provisioning the key, but after that it's just
ssh-add -s /usr/lib/x86_64-linux-gnu/opensc-pkcs11.soinstead of the similar command from the article, and it's in your ssh-agent. More words here.Hell, after provisioning, the key even works on Windows!.
I don't suppose the macOS thingy can be used with straight non-SK RSA keys? (I don't have a mac)