Skip to content

Instantly share code, notes, and snippets.

@atifraza
Last active October 6, 2021 08:38
Show Gist options
  • Save atifraza/7f4a41d130dddb7bbaeb5a2793dea2ed to your computer and use it in GitHub Desktop.
Save atifraza/7f4a41d130dddb7bbaeb5a2793dea2ed to your computer and use it in GitHub Desktop.
SSH and GPG key related stuff

Creating good SSH keys

  • ED25519
    • ssh-keygen -o -a 100 -t ed25519 -C your_email@address.com
  • RSA
    • ssh-keygen -o -a 100 -t rsa -b 4096 -C your_email@address.com

Exporting GPG keys and the owner trust db

  • Private (includes public key)
    • gpg -a --export-secret-keys -o /path/to/private.asc
  • Public
    • gpg -a --export -o /path/to/public.asc
  • Owner Trust
    • gpg --export-ownertrust > /path/to/ownertrust.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment