Bug#916713: openssh-client: ssh-add still shows and uses old ED25519 keys
Package: openssh-client
Version: 1:7.9p1-4
Severity: important
Hey,
ssh-add remembers old keys that I am not using for weeks. They still
show up after reboot and after ssh-add -D.
There is a bug report about gnome-keyring which states that you can't
delete keys which are imported by i.e. gnome-keyring. Problem is that I
don't have gnome-keyring installed but maybe the keys are stored
somewhere else?
This bug is important because it keeps me from login in with ssh to
devices that disconnect after 3 connect attempts. I have to specify the
key to use manually.
The key is of course not in .ssh/id_ed25519 or in /etc/ssh/...
[hommesf@stark tmp]$ ssh-add -l
4096 SHA256:unV9TSgT3jDr3t5aq7C5QJLiGJRddMIYIFfpkx8V5kY cardno:000500004FDD (RSA)
256 SHA256:33JVhwdL/E/NLhna6e4vZaj3nfjKVrfz3ss+jldSjD0 hommesf@stark (ED25519)
256 SHA256:mvQJDcAnfXfji5lq/+j2JJPH+8SbYTv3uYFL534Kx1w hommesf@stark (ED25519)
4096 SHA256:f2U9xc2Rc3L9yeIycx5LAfIbMRKNwSSUTzjCxMDGbN0 /home/hommesf/.ssh/id_rsa (RSA)
256 SHA256:L4VndWhOm1D4mJApONnyvtyGbqo2LmmjtHjnH55hsOw hommesf@stark (ED25519)
[hommesf@stark tmp]$ ssh-add -D
All identities removed.
[hommesf@stark tmp]$ ssh-add -d
Identity removed: /home/hommesf/.ssh/id_ed25519 (hommesf@stark)
[hommesf@stark tmp]$ ssh-add -l
4096 SHA256:unV9TSgT3jDr3t5aq7C5QJLiGJRddMIYIFfpkx8V5kY cardno:000500004FDD (RSA)
256 SHA256:33JVhwdL/E/NLhna6e4vZaj3nfjKVrfz3ss+jldSjD0 hommesf@stark (ED25519)
256 SHA256:mvQJDcAnfXfji5lq/+j2JJPH+8SbYTv3uYFL534Kx1w hommesf@stark (ED25519)
4096 SHA256:f2U9xc2Rc3L9yeIycx5LAfIbMRKNwSSUTzjCxMDGbN0 /home/hommesf/.ssh/id_rsa (RSA)
256 SHA256:L4VndWhOm1D4mJApONnyvtyGbqo2LmmjtHjnH55hsOw hommesf@stark (ED25519)
[hommesf@stark ~]$ echo $SSH_AUTH_SOCK
/run/user/1000/gnupg/S.gpg-agent.ssh
I am trying to fix this for weeks but nothing is helping.
Greetings
Frank
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 4.18.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages openssh-client depends on:
ii adduser 3.118
ii dpkg 1.19.2
ii libc6 2.27-8
ii libedit2 3.1-20180525-1
ii libgssapi-krb5-2 1.16.1-1
ii libselinux1 2.8-1+b1
ii libssl1.1 1.1.1a-1
ii passwd 1:4.5-1.1
ii zlib1g 1:1.2.11.dfsg-1
Versions of packages openssh-client recommends:
ii xauth 1:1.0.10-1
Versions of packages openssh-client suggests:
pn keychain <none>
pn libpam-ssh <none>
pn monkeysphere <none>
pn ssh-askpass <none>
-- no debconf information
Reply to: