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

Use SSH agent restriction instead of git overrides #227

Open
MOZGIII opened this issue Oct 13, 2024 · 1 comment
Open

Use SSH agent restriction instead of git overrides #227

MOZGIII opened this issue Oct 13, 2024 · 1 comment

Comments

@MOZGIII
Copy link

MOZGIII commented Oct 13, 2024

Take a look at https://www.openssh.com/agent-restrict.html

This should enable more straightforward support for when multiple deploy keys are in use with docker.

All we have to do it seems is, really, just pass the host as a -h argument when invoking ssh-add.

@MOZGIII
Copy link
Author

MOZGIII commented Oct 13, 2024

Never mind, this doesn't allow discriminating by git path - only by the host path, so git overrides are will required. That said, maybe the keys can still be kept at the agent instead of creating files. This, together with git host overrides, might actually eliminate the need to copy actual keys into the container.

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

1 participant