Bug 1205546 - gnome-keyring ssh-agent breaks ssh-add -D
Summary: gnome-keyring ssh-agent breaks ssh-add -D
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-keyring
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-25 07:33 UTC by Craig Ringer
Modified: 2024-01-24 15:13 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-12-12 10:09:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Craig Ringer 2015-03-25 07:33:35 UTC
The gnome-keyring hihacking of the ssh-agent does not respect "ssh-add -D" to unload all keys, or "ssh-add -d keyname" to unload a specific key.

It always caches a key in the session once loaded.

Because most servers limit connection attempts to five proposals for public keys, after a certain number of keys have been unlocked authentication will often fail with:

"too many authentication failures for [username]"

before offering a the key that the upstream server will accept.

The user must log out and log back in to fix this, or disable gnome-keyring-daemon's ssh agent support. Doing the latter is undocumented and lacks any GUI or any support in gnome-tweak-tool.


$ lsb_release -a
LSB Version:	:core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID:	Fedora
Description:	Fedora release 21 (Twenty One)
Release:	21
Codename:	TwentyOne

$ gnome-keyring-daemon --version
gnome-keyring-daemon: 3.14.0
testing: enabled

Comment 1 Jeffrey C. Ollie 2015-04-23 14:33:37 UTC
I'm seeing the same issue in my F22 beta system.  Should this be a release blocker?

Comment 2 Jeffrey C. Ollie 2015-04-23 19:59:43 UTC
Disregard the above comment, was meant for another bug report.

Comment 3 Fedora End Of Life 2015-11-04 12:32:43 UTC
This message is a reminder that Fedora 21 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 21. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '21'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 21 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 4 Fedora End Of Life 2015-12-02 10:30:41 UTC
Fedora 21 changed to end-of-life (EOL) status on 2015-12-01. Fedora 21 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 5 Martin Wilck 2016-08-11 18:29:47 UTC
still in F24

Comment 6 Dominik 'Rathann' Mierzejewski 2016-12-02 22:29:03 UTC
Still in F25.

Comment 7 Christopher J Tapp 2016-12-17 13:45:07 UTC
A real PITA when working with multiple github accounts as many of us do. This is the kind of thing that gives gnome 3 a bad name IMO.

Comment 8 Jakub Jelen 2017-06-13 08:30:03 UTC
If you are using more ssh keys to more ssh accounts, you should really create a configuration file with 1-1 association so the ssh knows what key to use (even if it is provided by the ssh-agent/gnome-keyring) including IdentiesOnly option.

Comment 9 Fedora End Of Life 2017-11-16 18:53:03 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 10 Fedora End Of Life 2017-12-12 10:09:59 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 11 Denis 2024-01-24 15:13:19 UTC
I can reproduce on F38


Note You need to log in before you can comment on or make changes to this bug.