8 lines
232 B
Bash
8 lines
232 B
Bash
#!/bin/bash
|
|
|
|
echo ">>> Exporting SSH key <<<"
|
|
cat ~/.ssh/id_ed25519.pub
|
|
|
|
echo ">>> Exporting public GPG key <<<"
|
|
ID=$(gpg --list-secret-keys --keyid-format LONG | perl -n -e'/^sec.*\/(\w*)\s+/ && print $1')
|
|
gpg --armor --export $ID
|