diff options
author | drduh <github@duh.to> | 2023-10-15 16:19:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-15 16:19:00 -0700 |
commit | 5d1e524af5bfb9a44807344a81900f4ee0731b3d (patch) | |
tree | 5c44a2a17b5768e3a7b8d9b1e07add8554ced1c1 | |
parent | Merge pull request #395 from alhirzel/patch-1 (diff) | |
parent | fix bad copy paste (diff) | |
download | YubiKey-Guide-5d1e524af5bfb9a44807344a81900f4ee0731b3d.tar.gz |
Merge pull request #387 from dkarlovi/patch-1
fix: add an explicit example about publishing the pubkey when expiring
-rw-r--r-- | README.md | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -2202,7 +2202,7 @@ Key is valid for? (0) ``` Follow these prompts to set a new expiration date, then `save` to save your changes. -Next, export the public key: +Next, [export the public key](#export-public-keys): ```console $ gpg --armor --export $KEYID > gpg-$KEYID-$(date +%F).asc @@ -2214,6 +2214,18 @@ Transfer that public key to the computer from which you use your GPG key, and th $ gpg --import gpg-0x*.asc ``` +Alternatively, use a public key server (it will update the key if already on the server): + +```console +$ gpg --send-key $KEYID +``` + +and import the newly updated key on any computer where you wish to use it (it will update the key if previously imported): + +```console +$ gpg --recv $KEYID +``` + This will extend the validity of your GPG key and will allow you to use it for SSH authorization. Note that you do _not_ need to update the SSH public key located on remote servers. ## Rotating keys |