diff --git a/gpg/README.md b/gpg/README.md index 4a15a17..74e6447 100644 --- a/gpg/README.md +++ b/gpg/README.md @@ -41,7 +41,7 @@ $ gpg -k ### Copy Public Key ```console -gpg --export --armor $(gpg -K --with-colons --keyid-format SHORT | awk -F: '/^pub:/ { print $5 }') | xclip -sel clip +gpg --export --armor $(gpg -K --with-colons | awk -F: '/^sec/ { getline; print $10; exit }') ``` ### Copy Private key (Caution) diff --git a/ssh/README.md b/ssh/README.md index 271ab98..1ccc8d1 100644 --- a/ssh/README.md +++ b/ssh/README.md @@ -3,7 +3,12 @@ ### Generate SSH key pair ```console -$ ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "john@example.com" +ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "lupin@example.com" +``` + +#### Hardware Key +```console +ssh-keygen -o -a 100 -t ed25519-sk -f ~/.ssh/id_ed25519 -C "lupin@example.com" ``` #### Change private key permissions