14 ms·
It even works with GnuPG! You will need to create ~/.gnupg/sshcontrol[1], then run: $ export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) $ gp
by johnisgood 7y ago
It even works with GnuPG! You will need to create ~/.gnupg/sshcontrol[1], then run:
$ export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
$ gpg-agent --enable-ssh-support
If you get an error[2] when you are trying to ssh into a machine, you may need:
$ gpg-connect-agent updatestartuptty /bye > /dev/null
For information as to how to create an authentication subkey: https://www.gniibe.org/memo/software/gpg/keygen-25519.html https://www.gniibe.org/memo/software/gpg/keygen-25519.html
[1] You need to add your authentication subkey's keygrip which you can get using: gpg --list-keys --with-keygrip or the like. Separate the keygrips with a newline, and IIRC you need to have a newline at the end of the file as well.
[2] For example: "sign_and_send_pubkey: signing failed: agent refused operation".