emacs/var/elfeed/db/data/ff/ff96121bc3b993a9e6047b8ae465dfea4d15074b
2022-01-03 12:49:32 -06:00

1 line
1.2 KiB
Plaintext

<!-- SC_OFF --><div class="md"><p>Hi all.</p> <p>I added the following snippets of commands to my <code>bashrc</code> file in order to replace the ssh-agent with the gpg-agent. The result is that it seems to work only with one of them and not the other.</p> <p>Here is the working one:</p> <pre><code>export GPG_TTY=&quot;$(tty)&quot; export SSH_AUTH_SOCK=&quot;/run/user/$UID/gnupg/S.gpg-agent.ssh&quot; gpg-connect-agent updatestartuptty /bye &gt; /dev/null </code></pre> <p>and here&#39;s the non working one:</p> <pre><code>export GPG_TTY=&quot;$(tty)&quot; export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) gpgconf --launch gpg-agent </code></pre> <p>I read somewhere that the second one works on modern systems. But what does modern mean? Why this does not work properly in my case?</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/netpumber"> /u/netpumber </a> <br/> <span><a href="https://www.reddit.com/r/archlinux/comments/qyw7dm/replacing_the_sshagent_with_the_gpgagent/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/archlinux/comments/qyw7dm/replacing_the_sshagent_with_the_gpgagent/">[comments]</a></span>