Bug 2191 - Feature Proposal: Add an identity to the agent automatically when loading the identity
Summary: Feature Proposal: Add an identity to the agent automatically when loading the...
Status: NEW
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh-agent (show other bugs)
Version: 6.4p1
Hardware: Other Linux
: P5 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-29 07:45 EST by Tomohiro Matsuyama
Modified: 2014-03-25 02:57 EST (History)
1 user (show)

See Also:


Attachments
IdentityPersist patch (6.09 KB, patch)
2013-12-29 07:45 EST, Tomohiro Matsuyama
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomohiro Matsuyama 2013-12-29 07:45:26 EST
Created attachment 2396 [details]
IdentityPersist patch

Background:

I want to add an identity to an authentication agent automatically
when I load the identity.  Gnome-keyring has such a feature by using a
modified ssh-agent, but I don't want to run the gnome-keyring's agent
only for this feature.

Specification:

I propose to add two options called IdentityPersist and
IdentityPersistConfirm to accomplish this feature.

IdentityPersist can take a boolean value or a time value like:

    # keep identities forever
    IdentityPersist yes
    # keep identities for 5 minutes
    IdentityPersist 300 

If the value is true or a time, then ssh-agent will try to add an
identity to itself automatically when the identity is being loaded.
If the time value is given, ssh-agent will forget the identity in
seconds the value specified.  The default value is false.

IdentityPersistConfirm can take a boolean value.  If the value is
true, then ssh-agent will confirm to an user that the identity should
be added or not.  The default value is false.

Implementation and test:

I have attached a patch.  It's a tiny change, so you can read the
modification in few minutes.  I have tested on Debian/GNU Linux 7.0.
I have also checked the patch doesn't break a build on Debian/GNu
Linux 7.0 and OpenBSD 5.4.