Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update key lifetime each time a key is used? #70

Open
stefanmohl opened this issue Apr 26, 2022 · 3 comments
Open

Update key lifetime each time a key is used? #70

stefanmohl opened this issue Apr 26, 2022 · 3 comments

Comments

@stefanmohl
Copy link

stefanmohl commented Apr 26, 2022

I would like giving my keys a lifetime by adding something along the lines of:

SSH_ADD_DEFAULT_OPTIONS = "-t 1800"

but that would mean that I need to input my passphrase quite often. Preferably, that timeout should be updated each time I run ssh so that the key only gets invalidated whenever I haven't actively logged in anywhere for longer than the timeout. Is there any way of achieving this?

@stefanmohl stefanmohl changed the title Update key-time each time a key is used? Update key timeout each time a key is used? Apr 26, 2022
@stefanmohl stefanmohl changed the title Update key timeout each time a key is used? Update key lifetime each time a key is used? Apr 26, 2022
@maddes-b
Copy link

maddes-b commented May 6, 2022

Have you verified that OpenSSH's ssh-add provides this feature to prolong the key's lifetime? And if so how does it work? Then it may be added to ssh-ident.

@stefanmohl
Copy link
Author

stefanmohl commented May 6, 2022

As far as I know, ssh-agent does not provide this feature. I was more hoping along the lines of somehow being able to provide it through ssh-ident. I'll check with the OpenSSH mailing list to see if they have any ideas around such a function.

@maddes-b
Copy link

maddes-b commented May 6, 2022

ssh-ident can only support the features that ssh-agent/ssh-add provides. You should create a feature request at OpenSSH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants