commit ae9c3b39f4366e4fb5c09dd41229035f4eb8609d
parent fd9535de7a9c29c058207dc2b48e3213e219e8fd
Author: pyratebeard <root@pyratebeard.net>
Date: Thu, 1 Dec 2022 15:37:46 +0000
where_the_sshadows_lie
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/entry/where_the_sshadows_lie.md b/entry/where_the_sshadows_lie.md
@@ -27,8 +27,9 @@ To add your SSH key as a subkey edit your GPG key in expert mode
gpg2 -a --export-secret-keys <key_id> > original_backup.asc
gpg2 --quick-add-key <key_id> ed25519 auth 0
gpg2 --export-ssh-key <key_id>
+# use drist to copy key every where
keychain --agents ssh,gpg -k
-gpg2 -K --with-keygrip
+gpg2 -k --with-keygrip <key_id>
# get keygrip of ssh key
echo <keygrip> >> ~/.gnupg/sshcontrol
vi ~/.zsh/keychain.zsh