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

#1127723#5
Date:
2026-02-12 09:37:19 UTC
From:
To:
Hi,

https://db.debian.org/doc-mail.html says

cat .ssh/id_rsa.pub | gpg --clearsign | mail changes@db.debian.org

which doesn't work. Today's gpg versions want to seek on the input file.

GPG_TTY="$(tty)" < .ssh/authorized_keys.d/dist/mh-yubikeys.pub gpg --clearsign | mail changes@db.debian.org

works.

Greetings
Marc

#1127723#10
Date:
2026-02-12 13:49:58 UTC
From:
To:
Works here.

What kind of error message are you getting?

$ cat test | gpg --clearsign
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi Marc!
(that's from a throw-away key for testing on sid)

#1127723#15
Date:
2026-02-12 14:36:55 UTC
From:
To:
cat .ssh/authorized_keys.d/dist/mh-yubikeys.pub | gpg --clearsign
gpg: signing failed: Inappropriate ioctl for device
gpg: [stdin]: clear-sign failed: Inappropriate ioctl for device

(on trixie)

Grüße
Marc

#1127723#20
Date:
2026-02-12 17:02:59 UTC
From:
To:
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.

#1127723#25
Date:
2026-02-12 20:41:35 UTC
From:
To:
How many people are going to need that? If it's harmless, it should be
part of the docs.

Greetings
Marc

#1127723#30
Date:
2026-02-13 11:39:55 UTC
From:
To:
Am 12.02.26 um 21:41 schrieb Marc Haber:

Well, it's gpg. It is part of its docs.

#1127723#35
Date:
2026-02-13 12:34:27 UTC
From:
To:
What an utter waste of time this bug report is. The actual change to
the web page would have taken half the time

#1127723#40
Date:
2026-02-13 12:55:10 UTC
From:
To:
So it is utterly broken and should be reassigned to gnupg and be fixed.

Bastian

#1127723#45
Date:
2026-02-13 13:52:26 UTC
From:
To:
And I'm sorry, but this web page is not in the repositories of the web\
team. Currently I do not know to which (pseudo)-package we should
assign this bug.