From: Sam Millman <sam.millman@gmail.com>
To: git@vger.kernel.org
Subject: Re: How to use multiple SSH keys on Git exe (not bash)
Date: Wed, 10 Jan 2018 15:30:52 +0000 [thread overview]
Message-ID: <CALKyTE7VpeCoofzzutdEmsjtGe7NaC3EywQWJvM0EOH3U6XvoA@mail.gmail.com> (raw)
In-Reply-To: <CALKyTE7+qJSYHQRB44HjHXK_EjOxNnCfQOROSDVVwAFR-gMnXQ@mail.gmail.com>
I am trying, for the sake of PhpStorm, to get multiple SSH keys
working using git . exe, which means no GitBash.
I can get the keys to work just fine with GitBash.
I edited my .ssh/config to look like (I know this is incorrect):
Host bitucket . org
IdentityFile ~/.ssh/id_rsa1
Host bitbucket . org
IdentityFile ~/.ssh/id_rsa
And id_rsa1 works, I can actually pick from the other repo. But, of
course, id_rsa does not now.
I change to:
Host bitucket . org-dd
HostName bitbucket . org
IdentityFile ~/.ssh/id_rsa1
Host bitbucket . org-sas
HostName bitbucket . org
IdentityFile ~/.ssh/id_rsa
And now only id_rsa works.
I also tried combining the two IdentityFile lines together like so
(for some reason):
Host bitucket . org
IdentityFile ~/.ssh/id_rsa1
IdentityFile ~/.ssh/id_rsa
I have even tried running ssh-agent . exe, adding id_rsa1 to that and
then running the git clone with no result.
The weird thing is, I have two public keys as well and they both load
in the ssh . exe (they return errors about format), I just cannot get
my ssh . exe to work with multiple private keys.
On 10 January 2018 at 15:29, Sam Millman <sam.millman@gmail.com> wrote:
> I am trying, for the sake of PhpStorm, to get multiple SSH keys working
> using git . exe, which means no GitBash.
>
> I can get the keys to work just fine with GitBash.
>
> I edited my .ssh/config to look like (I know this is incorrect):
>
> Host bitucket . org
> IdentityFile ~/.ssh/id_rsa1
>
> Host bitbucket . org
> IdentityFile ~/.ssh/id_rsa
>
>
> And id_rsa1 works, I can actually pick from the other repo. But, of course,
> id_rsa does not now.
>
> I change to:
>
> Host bitucket . org-dd
> HostName bitbucket . org
> IdentityFile ~/.ssh/id_rsa1
>
> Host bitbucket . org-sas
> HostName bitbucket . org
> IdentityFile ~/.ssh/id_rsa
>
> And now only id_rsa works.
>
> I also tried combining the two IdentityFile lines together like so (for some
> reason):
>
> Host bitucket . org
> IdentityFile ~/.ssh/id_rsa1
> IdentityFile ~/.ssh/id_rsa
>
> I have even tried running ssh-agent . exe, adding id_rsa1 to that and then
> running the git clone with no result.
>
> The weird thing is, I have two public keys as well and they both load in the
> ssh . exe (they return errors about format), I just cannot get my ssh . exe
> to work with multiple private keys.
>
> Has anyone got any ideas on how to solve this?
next parent reply other threads:[~2018-01-10 15:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CALKyTE7+qJSYHQRB44HjHXK_EjOxNnCfQOROSDVVwAFR-gMnXQ@mail.gmail.com>
2018-01-10 15:30 ` Sam Millman [this message]
2018-01-10 15:58 ` How to use multiple SSH keys on Git exe (not bash) Randall S. Becker
2018-01-10 16:01 ` Sam Millman
2018-01-10 16:14 ` Randall S. Becker
2018-01-10 15:58 ` Ævar Arnfjörð Bjarmason
2018-01-10 16:02 ` Sam Millman
2018-01-10 16:23 ` Randall S. Becker
2018-01-10 16:26 ` Sam Millman
2018-01-10 16:29 ` Randall S. Becker
2018-01-10 16:32 ` Sam Millman
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CALKyTE7VpeCoofzzutdEmsjtGe7NaC3EywQWJvM0EOH3U6XvoA@mail.gmail.com \
--to=sam.millman@gmail.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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).