fix: export to ssh example

This commit is contained in:
Michele Cereda
2024-02-04 01:36:51 +01:00
parent f61de6fd03
commit 378879e688

View File

@@ -112,8 +112,9 @@ gpg --list-keys --keyid-format 'short' 'recipient' \
export SSH_AUTH_SOCK="$(gpgconf --list-dirs 'agent-ssh-socket')" && \
gpgconf --launch 'gpg-agent'
# Export keys as SSH keys.
# Export keys in OpenSSH format.
gpg --export-ssh-key 'key_identifier'
gpg --export-ssh-key 'ed25519_key' > ~'/.ssh/id_ed25519.pub'
# Integrate with Pinentry.