-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Permanently add all SSH keys to ssh-agent #1062
Comments
cmder only documents what's already available in the git package. The file is included in the git-for-windows package from the mingw packages: https://github.com/git-for-windows/MINGW-packages/blob/master/mingw-w64-git/start-ssh-agent.cmd As far as I understand that file, it simply does a
I guess one idea would be to copy the start-ssh-agent.cmd script to a user controlled place and change that line to also list all keyfiles Or do a manual Or change the start-ssh-agent script to add a way to add more than one keyfile and submit a PR there :-) |
Ah that should be plenty of options to try out @JanSchulz, thanks for the reply! 😄 |
See git-for-windows/MINGW-packages#18 for a PR adding it upstream... If that is accepted, you can |
Awesome, thanks for that! Let's hope it gets merged 🙏 |
@svenluijten It would be nice if you could try that PR: simply save the complete file from https://github.com/janschulz/MINGW-packages/blob/ea4dad14da8e7ad60c7b2e7eaaef9e138b7da563/mingw-w64-git/start-ssh-agent.cmd in |
@JanSchulz I'll do that once I have access to my PC at home later today 👍 |
It seems the new git version and in particular the included openssh version has some other means to get a solution working: git-for-windows/MINGW-packages#18 (comment) |
Oh neat |
Note: I'm by no means an expert in any of the things I'm talking about here, I really just want it to work the way it used to. Any help is appreciated! 😄
Since a recent update, running
agent
to start up my SSH agent stopped working so I started poking around and I found out I have to uncomment@call "%GIT_INSTALL_ROOT%/cmd/start-ssh-agent.cmd
from%CMDER_ROOT%/config/user-profile.cmd
, which I did.To my surprise, this only added my
id_rsa
file to the SSH agent (is this even the correct terminology?). I have 3 more of my keys in there that I would like to use without having to specify an input file (ssh -i /path/to/file ...
) every time I want to establish a new SSH connection. So I guess my question is, how would I go about adding all my SSH keys to the SSH agent when cmder boots up?The text was updated successfully, but these errors were encountered: