Touch ID 登录 SSH 的密钥丢失风险提醒
Setting Up SSH Keys on macOS with Touch ID
评论指出在 macOS 上用 Touch ID 保存 SSH 私钥时,密钥存于 Secure Enclave,Keychain 有备份但 Enclave 内容没有;一旦失去对该 Enclave 的访问权限,密钥即不可恢复,多次验证失败也可能导致密钥被清除。建议至少准备一把备份密钥或可靠的备用登录途径。
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're told, if you lose access to ->THIS<- secure enclave, its game over for the keys.
Secure enclave protecting Keychain, the keychain is backed up. Not the contents of the enclave.
Too many failed access attempts? poof the key is gone. Could be as low as 10.
(happy to be corrected. This is what I gather from a quick read-around. I was a bit surprised the site didn't seem to discuss this)
来源:Hacker News · 首页 · news.ycombinator.com