Hacker News new | ask | show | jobs
by computerfriend 20 days ago
I wish there was a way to cache the touch. As it stands, this is mostly unusable for commit signing in a rebase-heavy workflow.
3 comments

In case you want to just have an encrypted SSH key with password in keychain, you can make it work automatically when logged in (and when Mac is unlocked) by putting in .ssh/config:

  Host github.com
    AddKeysToAgent yes
    UseKeychain yes
    IdentityFile ~/.ssh/id_ed25519
Docs: https://docs.github.com/en/authentication/connecting-to-gith...
I use [1] ssh config ControlPersist for 10m to enable something like this:

    Host *
        IdentityAgent ~/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh
        IdentitiesOnly yes
        ControlMaster auto
        ControlPersist 10m
        ControlPath ~/.ssh/sockets/%r@%k:%p
[1] https://github.com/maxgoedjen/secretive/issues/531#issuecomm...
Normally with gpg agent that leaves the key unlocked it is not a problem.