1
0
Files
cheatsheet-site/content/ssh/ssh-via-gpg.md
yuudi 728a3db957
Some checks failed
Build / build (push) Has been cancelled
init
2025-08-12 18:37:54 -06:00

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>