Urgent.News

What's breaking now, across thousands of outlets.

Tech

Setting up SSH keys on macOS with Touch ID

This post demonstrates a straightforward and secure method for creating SSH keys on macOS, integrating Touch ID authentication, and configuring the key for GitHub usage. Apple's Secure Enclave offers a robust solution that enhances security during SSH authentication, particularly for services like GitHub. The Secure Enclave provides a tamper-proof environment for identity storage, leveraging Touch ID to ensure access is strictly biometrically verified.

By following a simple three-step process—creating a secure identity, configuring SSH to utilize it, and adding the identity to GitHub—we can establish a more secure SSH setup. The Secure Enclave's identities are managed through the sc_auth command, leveraging CryptoTokenKit (CTK) identities, which store private keys unextractably within the Secure Enclave.

This setup ensures that even if a Mac fails or is compromised, the Secure Enclave identity remains inaccessible, emphasizing the importance of having a new identity created when necessary. The integration with SSH is facilitated by the ssh-keychain.dylib library, acting as a bridge between the Secure Enclave identities and the SSH agent, allowing for fingerprint-based authentication without the need to export or expose private keys.

Written by urgent.news from Lobsters's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at nmattia.com →

More in Tech

More from Tuesday 20 October →