- Export subkey with authentication and import it on the box you need. Check Keybase encrypted files.
gpg -K --with-keygrip
- put keygrip id in .gnupg/sshcontrol
- add enable-ssh-support to .gnupg/gpg-agent.conf
- add the code block below to your shell's rc script.
- restart terminal or re-source it
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent