Bug#1127723: ssh key change procedure doesn't work any more

Daniel Lange <[email protected]> Thu, 12 Feb 2026 18:02:59 +0100
Newsgroups gmane.linux.debian.devel.www
Organization Debian
Message-ID <0e0fdf97-a8b1-4826-90bb-05407b47bd2e__41556.3220901944$1770915929$gmane$org@debian.org>
Works for me also on Trixie.

The /dev/tty handling in gpg has bitten some people since about a decade or so.

The corresponding GPG_TTY variable is documented at

https://www.gnupg.org/documentation/manuals/gnupg/Invoking-GPG_002dAGENT.html

and you use it yourself in your initial email.

The above recommends to add

GPG_TTY=$(tty)
export GPG_TTY

to .bashrc.

If you do that, the normal cat ... | gpg --whatever should work for you, too.