Reference: https://www.howtogeek.com/427982/how-to-encrypt-and-decrypt-files-with-gpg-on-linux/
Create gpg rings on both sides: you and your client
# List existing keys
$ gpg --list-keys
# Generate new key
--full-generate-key might not be available in your environment, in the case, you can use --gen-key instead.
$ gpg --full-generate-key
$ gpg --list-keys
# Export private and public keys
$ gpg --export-secret-key -a "<uid>" > myprivate.key
$ gpg --export --output fei.asc -armor <pub id>
# Export public key in ssh key
$ gpg --export-ssh-key <pub id>!
gpg --export-ssh-key 6352600EF7A9D369A20FF584739E316C0B08E9A5!
$ gpg --edit-key "user id"
No comments:
Post a Comment