This commit is contained in:
parent
3f93f5c5e4
commit
a0a7bd6596
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user