init
Some checks failed
Build / build (push) Has been cancelled
Some checks failed
Build / build (push) Has been cancelled
This commit is contained in:
23
content/ssh/ssh-via-gpg.md
Normal file
23
content/ssh/ssh-via-gpg.md
Normal 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>
|
||||
Reference in New Issue
Block a user