Hi all.

I added the following snippets of commands to my bashrc 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.

Here is the working one:

export GPG_TTY="$(tty)" export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh" gpg-connect-agent updatestartuptty /bye > /dev/null 

and here's the non working one:

export GPG_TTY="$(tty)" export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) gpgconf --launch gpg-agent 

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?

submitted by /u/netpumber
[link] [comments]