1
0

init
Some checks failed
Build / build (push) Has been cancelled

This commit is contained in:
yuudi
2025-08-10 11:04:12 +00:00
commit 728a3db957
20 changed files with 527 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
+++
date = '2025-08-10T11:36:00Z'
title = 'SSH via GPG'
+++
## get gpg key grip
<shell-commands-builder-component
command="gpg -k --with-keygrip">
</shell-commands-builder-component>
## enable ssh auth
<shell-commands-builder-component
command="gpg-connect-agent 'keyattr $1 Use-for-ssh: true' /bye"
variables='[{"position":1,"required":true}]'>
</shell-commands-builder-component>
## enable ssh agent
<shell-commands-builder-component
command="echo 'export SSH_AUTH_SOCK=/run/user/1000/gnupg/S.gpg-agent.ssh' >> ~/.bashrc">
</shell-commands-builder-component>