Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Cheat sheet, Linux commands:
- Encrypt file or e-mail:
- gpg -e -r your@email.com filename
- -e Tells gpg to encrypt a file with PGP
- -a (--armor) ASCII plaintext, used for e-mails
- -r Recipient, who you want to encrypt the file for, this can be for yourself or someone else
- Decrypt e-mail or file:
- gpg -d filename
- -d Tells gpg to decrypt the file, you must have the private key on said server's keyring to decrypt said file
- -o specify output file name, otherwise spit out the file in stdout.
- List public keys:
- gpg --list-keys
- List private keys:
- gpg --list-secret-keys
- Import public key:
- gpg --import key.asc
- Import private key:
- gpg --allow-secret-key-import --import
- Export public key:
- gpg -a --export your@email.com
- Export private key:
- gpg -a --export-secret-keys your@email.com
- Delete public key:
- gpg --delete-key your@email.com
- Delete private key:
- gpg --delete-secret-key your@email.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement