Bug#1036264: Key usage prompt doesn't show up on X

Jörg Sommer <[email protected]>
Newsgroups gmane.linux.debian.devel.ssh
Message-ID <20230518074021.gcmza3sqpfdmy3ab__32916.1516668805$1684396829$gmane$org@jo-so.de>
Package: openssh-client
Version: 1:9.2p1-2
Severity: normal

Hi,

when I add a key with `ssh-add -c id_rsa` to the agent, it doesn't prompt me
on usage of key but rejects it. I had to set the environment variable in the
systemd service. This affects X and Wayland/Gnome.

```ini
[Service]
Environment=DISPLAY=:0
```

Regards Jörg

-- System Information:
Debian Release: 12.0
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.3.0-0-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages openssh-client depends on:
ii  adduser           3.132
ii  libc6             2.36-9
ii  libedit2          3.1-20221030-2
ii  libfido2-1        1.12.0-2+b1
ii  libgssapi-krb5-2  1.20.1-2
ii  libselinux1       3.4-1+b5
ii  libssl3           3.0.8-1
ii  passwd            1:4.13+dfsg1-1+b1
ii  zlib1g            1:1.2.13.dfsg-1

Versions of packages openssh-client recommends:
ii  xauth  1:1.1.2-1

Versions of packages openssh-client suggests:
pn  keychain                         <none>
pn  libpam-ssh                       <none>
pn  monkeysphere                     <none>
ii  ssh-askpass-gnome [ssh-askpass]  1:9.2p1-2

-- no debconf information
signature.asc (application/pgp-signature, 269 B)
-----BEGIN PGP SIGNATURE-----

iJMEAREIADsWIQS1pYxd0T/67YejVyF9LJoj0a6jdQUCZGXWZB0YaHR0cHM6Ly9q
by1zby5kZS9wZ3Ata2V5LnR4dAAKCRB9LJoj0a6jdahHAQCHKRE9RhkbqSr6JsFe
0lueq0C8nIRrZic1qVRwo45FDwD/WQouvmgnElndslUwcFTeeBfHkHjIM7fXfqNS
l082x/8=
=q6hC
-----END PGP SIGNATURE-----
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.