Skip to content

Instantly share code, notes, and snippets.

@JacobJohansen
Forked from mdellavo/convert-pgp-to-ssh.sh
Created November 18, 2021 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JacobJohansen/79a9670e93f1757d3a38f8966b98cd4e to your computer and use it in GitHub Desktop.
Save JacobJohansen/79a9670e93f1757d3a38f8966b98cd4e to your computer and use it in GitHub Desktop.
Convert PGP Public Key to OpenSSH
# import the public key
gpg --import ../alice.asc
gpg --export $KEYID | openpgp2ssh $KEYID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment