-
Notifications
You must be signed in to change notification settings - Fork 271
Multiple keys not working #178
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
Comments
Yep, also having no luck. Even after following steps here to align git config and ssh config. I can clearly see by executing:
that it is still trying to use the public deploy key from repo-a to authenticate to github for repository b. Really frustrating - been stuck on this for literally days and I think I'm as far as I can go. |
The problem is still the case unfortunately, faced it today.
Unfortunately, in Github you can not setup single Deploy key for multiple repositories, link. For security reasons it's understandable, but in this case Has anyone found a solution for this? UPD |
Just FYI, we moved the shaunco fork to https://github.com/mapped/ssh-agent/tree/git-repo-mapping |
I have a React project that has two private repositories as dependencies. I created two SSH keys, added private keys as secrets and added public keys as deploy keys in the dependency repository.
This is the code from the pipeline
For some reason, the connection works only for the first key. I have tried putting SSH_PRIVATE_KEY2 first, and it worked for the repository that has SSH_PRIVATE_KEY2 public key counterpart, then I put SSH_PRIVATE_KEY1 first, and it worked for the repository that has SSH_PRIVATE_KEY1 public key counterpart.
Is someone else having the same issue?
The text was updated successfully, but these errors were encountered: