-
Notifications
You must be signed in to change notification settings - Fork 51
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 to get key password #171
Comments
Same problem here. Having two SSH Keys, both are loaded, and git commands for repositories via ssh work flawless. But g10k first brings a graphical dialog for my first key and then asks in the console for the second key and then in loop for further repos until i gave up. Maybe this ticket is related because we also have this kind of internal modules too "mod '$NAME', :git => 'ssh://git@$SERVERNAME': |
Yeah, this happens because g10k tries to add/load the SSH key before each git command targeting a non http repository URL, see Line 119 in fe43a33
I could add a parameter to the g10k config where the SSH key is specified, so that g10k should not do the above and simply trusts that the user already added the SSH key to an SSH agent. Sounds good? |
Yes, sounds very good! |
Any news on this? |
Nope, but it's not forgotten. Give me a little bit more time and I'll come back with a solution. |
Thank you! |
* add module parameter :use_ssh_agent to skip ssh-add before git over SSH commands, fixes #171 * add documentation for :use_ssh_agent git module feature
Checkout https://github.com/xorpaul/g10k/releases/tag/v0.8.13 Usage:
|
I am trying to use the option to clone repositories with an SSH key that has a password.
The key is already in my ssh-agent. Can the clone be done using that key?
The text was updated successfully, but these errors were encountered: