1 line
1.2 KiB
Plaintext
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="$(tty)" export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh" gpg-connect-agent updatestartuptty /bye > /dev/null </code></pre> <p>and here's the non working one:</p> <pre><code>export GPG_TTY="$(tty)" 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 -->   submitted by   <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>   <span><a href="https://www.reddit.com/r/archlinux/comments/qyw7dm/replacing_the_sshagent_with_the_gpgagent/">[comments]</a></span> |