From 41f05e8412721fb963897e323a7e91fe6d031496 Mon Sep 17 00:00:00 2001 From: benoit Date: Wed, 27 May 2020 01:39:09 +0000 Subject: [PATCH] gpg-agent list and delete key + md5 fingerprint --- SysadminTips.page | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/SysadminTips.page b/SysadminTips.page index 59e58dc..f5971f5 100644 --- a/SysadminTips.page +++ b/SysadminTips.page @@ -1,3 +1,17 @@ +GPG-agent list SSH key and remove. + +~~~ +gpg-connect-agent +KEYINFO --ssh-list --ssh-fpr +DELETE_KEY $HASH +~~~ + +Show md5 fingerprint of SSH key. + +~~~ +ssh-keygen -l -E md5 -f .ssh/key.pub +~~~ + Password recovery. At grub stage, press `e` to edit the kernel line and add `init=/bin/bash`. It will drop you in a shell before init system (systemd). ~~~