git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Multiple Keys in ssh-agent, fail to clone
@ 2016-07-13 18:56 Benjamin Fritsch
  2016-07-13 19:32 ` Junio C Hamano
  2016-07-14  8:09 ` Johannes Schindelin
  0 siblings, 2 replies; 4+ messages in thread
From: Benjamin Fritsch @ 2016-07-13 18:56 UTC (permalink / raw)
  To: git; +Cc: Brendan Fosberry

Hey all,

We recently upgraded from Git 2.8 to 2.9 and saw an issue when there are multiple keys added to my ssh-agent.

I have two keys. 
- KeyA (my company that has access to the repository I want to clone)
- KeyB (just my personal key with access to my personal stuff)

Having both keys in loaded and listed in `ssh-add -L` fails to clone the repository. I tried to change the order of the key in the agent but neither KeyA, KeyB nor KeyB, KeyA will work. The only case that works if I have KeyA loaded an no other key is added to the ssh-agent.

Having multiple Keys loaded works with Git 2.8 and Git 2.7 (I didn’t try older versions)
Cloning fails with “Unauthorized Access” of our Git provider. (It’s Bitbucket in this case)

I read the Changelog for 2.9 and couldn’t find any reference to changed key handling. Is there anything that I can add to the `git clone` command to get the old behavior?

Thank you for your help,
Best
Ben

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-07-15 12:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-13 18:56 Multiple Keys in ssh-agent, fail to clone Benjamin Fritsch
2016-07-13 19:32 ` Junio C Hamano
2016-07-15 12:04   ` Benjamin Fritsch
2016-07-14  8:09 ` Johannes Schindelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).