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

ssh-agent plugin should honor existing SSH agent #11067

Open
FallenWarrior2k opened this issue Jul 24, 2022 · 0 comments
Open

ssh-agent plugin should honor existing SSH agent #11067

FallenWarrior2k opened this issue Jul 24, 2022 · 0 comments
Labels
Feature New feature or request

Comments

@FallenWarrior2k
Copy link

If the feature request is for a plugin or theme, specify it here.

ssh-agent plugin

If the feature solves a problem you have, specify it here.

If an SSH agent is already configured, it is rarely desirable to start another agent. A common scenario for this is using GNOME Keyring's support for the SSH agent, in which case there will already be a running agent instance that is implicitly shared across all processes that will ever be started in the session, which also means the plugin's cache mechanism isn't needed.

Describe the proposed feature.

Don't start a new agent instance if there is already one running, i.e. SSH_AUTH_SOCK is set and valid.

Describe alternatives you've considered

Currently, I set zstyle :omz:plugins:ssh-agent agent-forwarding yes, which coincidentally also works by checking SSH_AUTH_SOCK before starting a new agent. However, I feel like this is abusing a control knob originally intended for something else.

Additional context

No response

Related Issues

No response

@FallenWarrior2k FallenWarrior2k added the Feature New feature or request label Jul 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

1 participant