Re:Protecting SSH Keys with macOS Secure Enclave
by jon-wood on Thursday November 12, 2026 @05:50AM
(#50465473)
Set the following in your SSH config, which will cause SSH to establish a single control channel when it first opens a connection to a host and maintain it until there's been 10 minutes of inactivity. That way the first connection requires auth for your SSH agent but it can then be reused for things like SFTP channels or opening another terminal.
Host \*
controlMaster auto
controlPath ~/.ssh/master-%r@%n:%p
controlPersist 10m
I've started building a timeout-based ssh-agent population utility, but if I'm honest, TPM keys without user presence is probably sufficient.