Search
English

How to keep an SSH key in the Mac Secure Enclave and approve each connection with Touch ID, without a separate app(gatezh.com)

startupxo Discuss

Writing language: KoreanRead in the original language

Plain summary

- Instead of a file, the secret key used to connect to servers (the SSH private key) is created inside an isolated security area of the Mac chip (the Secure Enclave). The key never leaves the chip, and the chip signs for each connection. - It is created with the built-in macOS commands sc_auth and ssh-keygen. The author used the -t bio option to require Touch ID every time the key is used. The post says this is supported on macOS Sequoia and Tahoe. - The author ran into three problems. The Touch ID enrollment was reset, so key creation failed. The old ssh-add -K instructions did not work. The key path had to be written directly in the SSH config file for the key to be recognized. - The author decided not to use this method because the Touch ID prompt showed an unfamiliar phrase, ctccardtoken, instead of an SSH message. Instead, the author says they will look into apps that use the Secure Enclave, such as Secretive.

Read source ↗

Found on

Hacker News ↗ / 74 votes / 22 comments

Have you run into something like this? Tell us in a line or two what you did. You do not need to know the product.

Sign in to comment

Keyboard shortcuts

Choose a post with J and K or the arrow keys, then press Enter.

K ↑ / J ↓
Previous post / next post
Enter C
Open summary and comments for the selected post
O
Open the original link of the selected post
/
Search
?
Show this help
Tab
Move to the submit or comment button, then press Enter

Type normally in text fields. Tab and Enter are always available.