Skip to content

Instantly share code, notes, and snippets.

@jmwebservices
Forked from mdellavo/convert-pgp-to-ssh.sh
Created January 19, 2023 00:02
Show Gist options
  • Save jmwebservices/59559e1453b58c0f476d5abf9df463dc to your computer and use it in GitHub Desktop.
Save jmwebservices/59559e1453b58c0f476d5abf9df463dc 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
@jmwebservices
Copy link
Author

  1. > yum install monkeysphere
  2. > gpg --import ./[PATH TO ASC]
  3. Record Key ID from #2
  4. > gpg --export [KEY ID] | openpgp2ssh [KEY ID]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment