23 lines
582 B
Markdown
23 lines
582 B
Markdown
+++
|
|
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> |