From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: Benjamin Fritsch <beanie@benle.de>
Cc: git@vger.kernel.org, Brendan Fosberry <brendan@codeship.com>
Subject: Re: Multiple Keys in ssh-agent, fail to clone
Date: Thu, 14 Jul 2016 10:09:28 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.20.1607141007230.6426@virtualbox> (raw)
In-Reply-To: <CFA91608-1F29-4631-BABC-258404A62A3B@benle.de>
Hi Benjamin,
On Wed, 13 Jul 2016, Benjamin Fritsch wrote:
> 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.
I once had the same problem, due to a server newly closing the connection
directly after the first key failed. Note: the problem was the *server*
(that was updated at the same time as my local Debian packages).
The only remedy was to specify the exact key in ~/.ssh/config via
IdentityFile.
Hth,
Johannes
prev parent reply other threads:[~2016-07-14 8:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.20.1607141007230.6426@virtualbox \
--to=johannes.schindelin@gmx.de \
--cc=beanie@benle.de \
--cc=brendan@codeship.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).