Re: GnuPG's Secure Shell (SSH) support in file '/etc/bashrc' (The Bash Shell Startup Files)

"Xi Ruoyao" ([email protected] via blfs-dev Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.beyond.devel
Message-ID <[email protected]>
On Mon, 2025-09-22 at 12:17 -0300, Jamenson Espindula wrote:
> Hi all.
> 
> Quoted from the Info page of the GnuPG:
> 
>  = = = Transcription begins = = =
> 
> If you enabled the Ssh Agent Support, you also need to tell ssh about
> it by adding this to your init script:
> 
>      unset SSH_AGENT_PID
>      if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
>        export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
>      fi
> 
>  = = = Transcription ends = = =
> 
> I figured out that the 'GPG_TTY' environment variable already was
> added to the '/etc/bashrc', allowing the program 'pinentry' to work
> properly.
> 
> So, I would suggest to include the above piece of code, to make the
> Secure Shell support of the GnuPG to work properly too.

People can use different ssh agents, like the one from OpenSSH itself or
the one from gnome-keyring.

So no, there is not a good reason to tell everyone to use the one from
GnuPG.

-- 
Xi Ruoyao <[email protected]>

-- 
http://lists.linuxfromscratch.org/sympa/info/blfs-dev
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.