{"thread":{"id":"47587","subject":"Re: How to use multiple SSH keys on Git exe (not bash)","startedAt":"2018-01-10T15:31:08Z","lastAt":"2018-01-10T16:32:32Z","messageCount":10,"participants":["Sam Millman","Randall S. Becker","Ævar Arnfjörð Bjarmason"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"336382","messageId":"CALKyTE7VpeCoofzzutdEmsjtGe7NaC3EywQWJvM0EOH3U6XvoA@mail.gmail.com","threadId":"47587","inReplyTo":"CALKyTE7+qJSYHQRB44HjHXK_EjOxNnCfQOROSDVVwAFR-gMnXQ@mail.gmail.com","subject":"Re: How to use multiple SSH keys on Git exe (not bash)","fromName":"Sam Millman","fromEmail":"sam.millman@gmail.com","sentAt":"2018-01-10T15:30:52Z","receivedAt":"2018-01-10T15:31:08Z","isPatch":false,"sender":{"key":"sam.millman@gmail.com","avatar":"https://gravatar.com/avatar/2f3e7313ecf48ed6d40c9a138819fd74fb6ebba89aae051b31caaa2f89095d03?d=mp&s=160"},"body":"I am trying, for the sake of PhpStorm, to get multiple SSH keys\nworking using git . exe, which means no GitBash.\n\nI can get the keys to work just fine with GitBash.\n\nI edited my .ssh/config to look like (I know this is incorrect):\n\nHost bitucket . org\nIdentityFile ~/.ssh/id_rsa1\n\nHost bitbucket . org\nIdentityFile ~/.ssh/id_rsa\n\n\nAnd id_rsa1 works, I can actually pick from the other repo. But, of\ncourse, id_rsa does not now.\n\nI change to:\n\nHost bitucket . org-dd\nHostName bitbucket . org\nIdentityFile ~/.ssh/id_rsa1\n\nHost bitbucket . org-sas\nHostName bitbucket . org\nIdentityFile ~/.ssh/id_rsa\n\nAnd now only id_rsa works.\n\nI also tried combining the two IdentityFile lines together like so\n(for some reason):\n\nHost bitucket . org\nIdentityFile ~/.ssh/id_rsa1\nIdentityFile ~/.ssh/id_rsa\n\nI have even tried running ssh-agent . exe, adding id_rsa1 to that and\nthen running the git clone with no result.\n\nThe weird thing is, I have two public keys as well and they both load\nin the ssh . exe (they return errors about format), I just cannot get\nmy ssh . exe to work with multiple private keys.\n\nOn 10 January 2018 at 15:29, Sam Millman <sam.millman@gmail.com> wrote:\n> I am trying, for the sake of PhpStorm, to get multiple SSH keys working\n> using git . exe, which means no GitBash.\n>\n> I can get the keys to work just fine with GitBash.\n>\n> I edited my .ssh/config to look like (I know this is incorrect):\n>\n> Host bitucket . org\n> IdentityFile ~/.ssh/id_rsa1\n>\n> Host bitbucket . org\n> IdentityFile ~/.ssh/id_rsa\n>\n>\n> And id_rsa1 works, I can actually pick from the other repo. But, of course,\n> id_rsa does not now.\n>\n> I change to:\n>\n> Host bitucket . org-dd\n> HostName bitbucket . org\n> IdentityFile ~/.ssh/id_rsa1\n>\n> Host bitbucket . org-sas\n> HostName bitbucket . org\n> IdentityFile ~/.ssh/id_rsa\n>\n> And now only id_rsa works.\n>\n> I also tried combining the two IdentityFile lines together like so (for some\n> reason):\n>\n> Host bitucket . org\n> IdentityFile ~/.ssh/id_rsa1\n> IdentityFile ~/.ssh/id_rsa\n>\n> I have even tried running ssh-agent . exe, adding id_rsa1 to that and then\n> running the git clone with no result.\n>\n> The weird thing is, I have two public keys as well and they both load in the\n> ssh . exe (they return errors about format), I just cannot get my ssh . exe\n> to work with multiple private keys.\n>\n> Has anyone got any ideas on how to solve this?\n"},{"id":"336383","messageId":"000c01d38a2b$d14c4620$73e4d260$@nexbridge.com","threadId":"47587","inReplyTo":"CALKyTE7VpeCoofzzutdEmsjtGe7NaC3EywQWJvM0EOH3U6XvoA@mail.gmail.com","subject":"RE: How to use multiple SSH keys on Git exe (not bash)","fromName":"Randall S. Becker","fromEmail":"rsbecker@nexbridge.com","sentAt":"2018-01-10T15:58:06Z","receivedAt":"2018-01-10T15:58:20Z","isPatch":false,"sender":{"key":"randall.becker@nexbridge.ca","avatar":"https://avatars.githubusercontent.com/u/28956764?v=4"},"body":"On January 10, 2018 10:31 AM Sam Millman wrote:\n> I am trying, for the sake of PhpStorm, to get multiple SSH keys working using\n> git . exe, which means no GitBash.\n> \n> I can get the keys to work just fine with GitBash.\n> \n> I edited my .ssh/config to look like (I know this is incorrect):\n> \n> Host bitucket . org\n> IdentityFile ~/.ssh/id_rsa1\n> \n> Host bitbucket . org\n> IdentityFile ~/.ssh/id_rsa\n> \n> \n> And id_rsa1 works, I can actually pick from the other repo. But, of course,\n> id_rsa does not now.\n> \n> I change to:\n> \n> Host bitucket . org-dd\n> HostName bitbucket . org\n> IdentityFile ~/.ssh/id_rsa1\n> \n> Host bitbucket . org-sas\n> HostName bitbucket . org\n> IdentityFile ~/.ssh/id_rsa\n> \n> And now only id_rsa works.\n> \n> I also tried combining the two IdentityFile lines together like so (for some\n> reason):\n> \n> Host bitucket . org\n> IdentityFile ~/.ssh/id_rsa1\n> IdentityFile ~/.ssh/id_rsa\n> \n> I have even tried running ssh-agent . exe, adding id_rsa1 to that and then\n> running the git clone with no result.\n> \n> The weird thing is, I have two public keys as well and they both load in the\n> ssh . exe (they return errors about format), I just cannot get my ssh . exe to\n> work with multiple private keys.\n> \n> On 10 January 2018 at 15:29, Sam Millman <sam.millman@gmail.com> wrote:\n> > I am trying, for the sake of PhpStorm, to get multiple SSH keys\n> > working using git . exe, which means no GitBash.\n> >\n> > I can get the keys to work just fine with GitBash.\n> >\n> > I edited my .ssh/config to look like (I know this is incorrect):\n> >\n> > Host bitucket . org\n> > IdentityFile ~/.ssh/id_rsa1\n> >\n> > Host bitbucket . org\n> > IdentityFile ~/.ssh/id_rsa\n> >\n> >\n> > And id_rsa1 works, I can actually pick from the other repo. But, of\n> > course, id_rsa does not now.\n> >\n> > I change to:\n> >\n> > Host bitucket . org-dd\n> > HostName bitbucket . org\n> > IdentityFile ~/.ssh/id_rsa1\n> >\n> > Host bitbucket . org-sas\n> > HostName bitbucket . org\n> > IdentityFile ~/.ssh/id_rsa\n> >\n> > And now only id_rsa works.\n> >\n> > I also tried combining the two IdentityFile lines together like so\n> > (for some\n> > reason):\n> >\n> > Host bitucket . org\n> > IdentityFile ~/.ssh/id_rsa1\n> > IdentityFile ~/.ssh/id_rsa\n> >\n> > I have even tried running ssh-agent . exe, adding id_rsa1 to that and\n> > then running the git clone with no result.\n> >\n> > The weird thing is, I have two public keys as well and they both load\n> > in the ssh . exe (they return errors about format), I just cannot get\n> > my ssh . exe to work with multiple private keys.\n> >\n> > Has anyone got any ideas on how to solve this?\n\nThe ~/.ssh/config file is case sensitive by definition when it comes to Host and HostName. Try bitbucket.org for one and Bitbucket.org for another. You will have to change the remote URL accordingly to pick up the correct identity.\n\nGood luck,\nRandall\n\n\n"},{"id":"336384","messageId":"87mv1laeoe.fsf@evledraar.gmail.com","threadId":"47587","inReplyTo":"CALKyTE7VpeCoofzzutdEmsjtGe7NaC3EywQWJvM0EOH3U6XvoA@mail.gmail.com","subject":"Re: How to use multiple SSH keys on Git exe (not bash)","fromName":"Ævar Arnfjörð Bjarmason","fromEmail":"avarab@gmail.com","sentAt":"2018-01-10T15:58:41Z","receivedAt":"2018-01-10T15:58:50Z","isPatch":false,"sender":{"key":"avarab@gmail.com","avatar":"https://avatars.githubusercontent.com/u/45301?v=4"},"body":"\nOn Wed, Jan 10 2018, Sam Millman jotted:\n\n> I am trying, for the sake of PhpStorm, to get multiple SSH keys\n> working using git . exe, which means no GitBash.\n>\n> I can get the keys to work just fine with GitBash.\n>\n> I edited my .ssh/config to look like (I know this is incorrect):\n>\n> Host bitucket . org\n> IdentityFile ~/.ssh/id_rsa1\n>\n> Host bitbucket . org\n> IdentityFile ~/.ssh/id_rsa\n>\n>\n> And id_rsa1 works, I can actually pick from the other repo. But, of\n> course, id_rsa does not now.\n>\n> I change to:\n>\n> Host bitucket . org-dd\n> HostName bitbucket . org\n> IdentityFile ~/.ssh/id_rsa1\n>\n> Host bitbucket . org-sas\n> HostName bitbucket . org\n> IdentityFile ~/.ssh/id_rsa\n>\n> And now only id_rsa works.\n>\n> I also tried combining the two IdentityFile lines together like so\n> (for some reason):\n>\n> Host bitucket . org\n> IdentityFile ~/.ssh/id_rsa1\n> IdentityFile ~/.ssh/id_rsa\n>\n> I have even tried running ssh-agent . exe, adding id_rsa1 to that and\n> then running the git clone with no result.\n>\n> The weird thing is, I have two public keys as well and they both load\n> in the ssh . exe (they return errors about format), I just cannot get\n> my ssh . exe to work with multiple private keys.\n\nThis might just be a special case of the problem of some hosting\nproviders picking only the first key you provide, as described in this\nthread:\nhttps://public-inbox.org/git/20180103102840.27897-1-avarab@gmail.com/\n\nIf so, you either need to hack around this with ssh host aliases, or a\ncustom GIT_SSH_COMMAND.\n\n> On 10 January 2018 at 15:29, Sam Millman <sam.millman@gmail.com> wrote:\n>> I am trying, for the sake of PhpStorm, to get multiple SSH keys working\n>> using git . exe, which means no GitBash.\n>>\n>> I can get the keys to work just fine with GitBash.\n>>\n>> I edited my .ssh/config to look like (I know this is incorrect):\n>>\n>> Host bitucket . org\n>> IdentityFile ~/.ssh/id_rsa1\n>>\n>> Host bitbucket . org\n>> IdentityFile ~/.ssh/id_rsa\n>>\n>>\n>> And id_rsa1 works, I can actually pick from the other repo. But, of course,\n>> id_rsa does not now.\n>>\n>> I change to:\n>>\n>> Host bitucket . org-dd\n>> HostName bitbucket . org\n>> IdentityFile ~/.ssh/id_rsa1\n>>\n>> Host bitbucket . org-sas\n>> HostName bitbucket . org\n>> IdentityFile ~/.ssh/id_rsa\n>>\n>> And now only id_rsa works.\n>>\n>> I also tried combining the two IdentityFile lines together like so (for some\n>> reason):\n>>\n>> Host bitucket . org\n>> IdentityFile ~/.ssh/id_rsa1\n>> IdentityFile ~/.ssh/id_rsa\n>>\n>> I have even tried running ssh-agent . exe, adding id_rsa1 to that and then\n>> running the git clone with no result.\n>>\n>> The weird thing is, I have two public keys as well and they both load in the\n>> ssh . exe (they return errors about format), I just cannot get my ssh . exe\n>> to work with multiple private keys.\n>>\n>> Has anyone got any ideas on how to solve this?\n"},{"id":"336385","messageId":"CALKyTE4eqbw_kMEH9fpwFa-s-WagFn5j9OxK68YXoARm7f4zHQ@mail.gmail.com","threadId":"47587","inReplyTo":"000c01d38a2b$d14c4620$73e4d260$@nexbridge.com","subject":"Re: How to use multiple SSH keys on Git exe (not bash)","fromName":"Sam Millman","fromEmail":"sam.millman@gmail.com","sentAt":"2018-01-10T16:01:19Z","receivedAt":"2018-01-10T16:01:50Z","isPatch":false,"sender":{"key":"sam.millman@gmail.com","avatar":"https://gravatar.com/avatar/2f3e7313ecf48ed6d40c9a138819fd74fb6ebba89aae051b31caaa2f89095d03?d=mp&s=160"},"body":"That would mean I would need to change the case for a letter everytime\nI have a repo with a new key, that would mean I would be restricted to\n12 client repos at a time :\\, seems very hacky to me\n\nOn 10 January 2018 at 15:58, Randall S. Becker <rsbecker@nexbridge.com> wrote:\n> On January 10, 2018 10:31 AM Sam Millman wrote:\n>> I am trying, for the sake of PhpStorm, to get multiple SSH keys working using\n>> git . exe, which means no GitBash.\n>>\n>> I can get the keys to work just fine with GitBash.\n>>\n>> I edited my .ssh/config to look like (I know this is incorrect):\n>>\n>> Host bitucket . org\n>> IdentityFile ~/.ssh/id_rsa1\n>>\n>> Host bitbucket . org\n>> IdentityFile ~/.ssh/id_rsa\n>>\n>>\n>> And id_rsa1 works, I can actually pick from the other repo. But, of course,\n>> id_rsa does not now.\n>>\n>> I change to:\n>>\n>> Host bitucket . org-dd\n>> HostName bitbucket . org\n>> IdentityFile ~/.ssh/id_rsa1\n>>\n>> Host bitbucket . org-sas\n>> HostName bitbucket . org\n>> IdentityFile ~/.ssh/id_rsa\n>>\n>> And now only id_rsa works.\n>>\n>> I also tried combining the two IdentityFile lines together like so (for some\n>> reason):\n>>\n>> Host bitucket . org\n>> IdentityFile ~/.ssh/id_rsa1\n>> IdentityFile ~/.ssh/id_rsa\n>>\n>> I have even tried running ssh-agent . exe, adding id_rsa1 to that and then\n>> running the git clone with no result.\n>>\n>> The weird thing is, I have two public keys as well and they both load in the\n>> ssh . exe (they return errors about format), I just cannot get my ssh . exe to\n>> work with multiple private keys.\n>>\n>> On 10 January 2018 at 15:29, Sam Millman <sam.millman@gmail.com> wrote:\n>> > I am trying, for the sake of PhpStorm, to get multiple SSH keys\n>> > working using git . exe, which means no GitBash.\n>> >\n>> > I can get the keys to work just fine with GitBash.\n>> >\n>> > I edited my .ssh/config to look like (I know this is incorrect):\n>> >\n>> > Host bitucket . org\n>> > IdentityFile ~/.ssh/id_rsa1\n>> >\n>> > Host bitbucket . org\n>> > IdentityFile ~/.ssh/id_rsa\n>> >\n>> >\n>> > And id_rsa1 works, I can actually pick from the other repo. But, of\n>> > course, id_rsa does not now.\n>> >\n>> > I change to:\n>> >\n>> > Host bitucket . org-dd\n>> > HostName bitbucket . org\n>> > IdentityFile ~/.ssh/id_rsa1\n>> >\n>> > Host bitbucket . org-sas\n>> > HostName bitbucket . org\n>> > IdentityFile ~/.ssh/id_rsa\n>> >\n>> > And now only id_rsa works.\n>> >\n>> > I also tried combining the two IdentityFile lines together like so\n>> > (for some\n>> > reason):\n>> >\n>> > Host bitucket . org\n>> > IdentityFile ~/.ssh/id_rsa1\n>> > IdentityFile ~/.ssh/id_rsa\n>> >\n>> > I have even tried running ssh-agent . exe, adding id_rsa1 to that and\n>> > then running the git clone with no result.\n>> >\n>> > The weird thing is, I have two public keys as well and they both load\n>> > in the ssh . exe (they return errors about format), I just cannot get\n>> > my ssh . exe to work with multiple private keys.\n>> >\n>> > Has anyone got any ideas on how to solve this?\n>\n> The ~/.ssh/config file is case sensitive by definition when it comes to Host and HostName. Try bitbucket.org for one and Bitbucket.org for another. You will have to change the remote URL accordingly to pick up the correct identity.\n>\n> Good luck,\n> Randall\n>\n>\n"},{"id":"336386","messageId":"CALKyTE57dfy1XFxVZR9yYc9rm6uQ+e+=PU_5gL15HdFO47abaA@mail.gmail.com","threadId":"47587","inReplyTo":"87mv1laeoe.fsf@evledraar.gmail.com","subject":"Re: How to use multiple SSH keys on Git exe (not bash)","fromName":"Sam Millman","fromEmail":"sam.millman@gmail.com","sentAt":"2018-01-10T16:02:56Z","receivedAt":"2018-01-10T16:03:02Z","isPatch":false,"sender":{"key":"sam.millman@gmail.com","avatar":"https://gravatar.com/avatar/2f3e7313ecf48ed6d40c9a138819fd74fb6ebba89aae051b31caaa2f89095d03?d=mp&s=160"},"body":"I actually played a bit more and got this:\n\nHost *\nIdentityFile ~/.ssh/id_rsa_d\nIdentityFile ~/.ssh/id_rsa\n\nHost bitbucket_1\nUser git\nHostName bitbucket.org\nIdentityFile ~/.ssh/id_rsa_d\n\nHost bitbucket_2\nUser git\nHostName bitbucket.org\nIdentityFile ~/.ssh/id_rsa\n\nAnd from basic testing it seems to actually work, it seems it is the\nHost * that make sit work and it will actually iterate the keys and\ntry them.\n\nNot sure why this is, any thoughts?\n\nOn 10 January 2018 at 15:58, Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:\n>\n> On Wed, Jan 10 2018, Sam Millman jotted:\n>\n>> I am trying, for the sake of PhpStorm, to get multiple SSH keys\n>> working using git . exe, which means no GitBash.\n>>\n>> I can get the keys to work just fine with GitBash.\n>>\n>> I edited my .ssh/config to look like (I know this is incorrect):\n>>\n>> Host bitucket . org\n>> IdentityFile ~/.ssh/id_rsa1\n>>\n>> Host bitbucket . org\n>> IdentityFile ~/.ssh/id_rsa\n>>\n>>\n>> And id_rsa1 works, I can actually pick from the other repo. But, of\n>> course, id_rsa does not now.\n>>\n>> I change to:\n>>\n>> Host bitucket . org-dd\n>> HostName bitbucket . org\n>> IdentityFile ~/.ssh/id_rsa1\n>>\n>> Host bitbucket . org-sas\n>> HostName bitbucket . org\n>> IdentityFile ~/.ssh/id_rsa\n>>\n>> And now only id_rsa works.\n>>\n>> I also tried combining the two IdentityFile lines together like so\n>> (for some reason):\n>>\n>> Host bitucket . org\n>> IdentityFile ~/.ssh/id_rsa1\n>> IdentityFile ~/.ssh/id_rsa\n>>\n>> I have even tried running ssh-agent . exe, adding id_rsa1 to that and\n>> then running the git clone with no result.\n>>\n>> The weird thing is, I have two public keys as well and they both load\n>> in the ssh . exe (they return errors about format), I just cannot get\n>> my ssh . exe to work with multiple private keys.\n>\n> This might just be a special case of the problem of some hosting\n> providers picking only the first key you provide, as described in this\n> thread:\n> https://public-inbox.org/git/20180103102840.27897-1-avarab@gmail.com/\n>\n> If so, you either need to hack around this with ssh host aliases, or a\n> custom GIT_SSH_COMMAND.\n>\n>> On 10 January 2018 at 15:29, Sam Millman <sam.millman@gmail.com> wrote:\n>>> I am trying, for the sake of PhpStorm, to get multiple SSH keys working\n>>> using git . exe, which means no GitBash.\n>>>\n>>> I can get the keys to work just fine with GitBash.\n>>>\n>>> I edited my .ssh/config to look like (I know this is incorrect):\n>>>\n>>> Host bitucket . org\n>>> IdentityFile ~/.ssh/id_rsa1\n>>>\n>>> Host bitbucket . org\n>>> IdentityFile ~/.ssh/id_rsa\n>>>\n>>>\n>>> And id_rsa1 works, I can actually pick from the other repo. But, of course,\n>>> id_rsa does not now.\n>>>\n>>> I change to:\n>>>\n>>> Host bitucket . org-dd\n>>> HostName bitbucket . org\n>>> IdentityFile ~/.ssh/id_rsa1\n>>>\n>>> Host bitbucket . org-sas\n>>> HostName bitbucket . org\n>>> IdentityFile ~/.ssh/id_rsa\n>>>\n>>> And now only id_rsa works.\n>>>\n>>> I also tried combining the two IdentityFile lines together like so (for some\n>>> reason):\n>>>\n>>> Host bitucket . org\n>>> IdentityFile ~/.ssh/id_rsa1\n>>> IdentityFile ~/.ssh/id_rsa\n>>>\n>>> I have even tried running ssh-agent . exe, adding id_rsa1 to that and then\n>>> running the git clone with no result.\n>>>\n>>> The weird thing is, I have two public keys as well and they both load in the\n>>> ssh . exe (they return errors about format), I just cannot get my ssh . exe\n>>> to work with multiple private keys.\n>>>\n>>> Has anyone got any ideas on how to solve this?\n"},{"id":"336387","messageId":"000d01d38a2e$10559810$3100c830$@nexbridge.com","threadId":"47587","inReplyTo":"CALKyTE4eqbw_kMEH9fpwFa-s-WagFn5j9OxK68YXoARm7f4zHQ@mail.gmail.com","subject":"RE: How to use multiple SSH keys on Git exe (not bash)","fromName":"Randall S. Becker","fromEmail":"rsbecker@nexbridge.com","sentAt":"2018-01-10T16:14:11Z","receivedAt":"2018-01-10T16:14:30Z","isPatch":false,"sender":{"key":"randall.becker@nexbridge.ca","avatar":"https://avatars.githubusercontent.com/u/28956764?v=4"},"body":"On January 10, 2018 11:01 AM Sam Millman wrote:\n> That would mean I would need to change the case for a letter everytime I\n> have a repo with a new key, that would mean I would be restricted to\n> 12 client repos at a time :\\, seems very hacky to me\n> \n> On 10 January 2018 at 15:58, Randall S. Becker <rsbecker@nexbridge.com>\n> wrote:\n> > The ~/.ssh/config file is case sensitive by definition when it comes to Host\n> and HostName. Try bitbucket.org for one and Bitbucket.org for another. You\n> will have to change the remote URL accordingly to pick up the correct\n> identity.\n\nThe combinatorics of it is Sum i=1 to n.(i) = 78.\n\nYou can also use BUtbucket.org, bUTbucket.org, etc., BUTbucket.org, etc., etc.\n\nHacky, maybe, but it has worked that way for a long time. Why do you need more than 78 identities? Bitbucket allows you to be on multiple projects with the same identity.\n\n"},{"id":"336388","messageId":"00c401d38a2f$51ded390$f59c7ab0$@nexbridge.com","threadId":"47587","inReplyTo":"CALKyTE57dfy1XFxVZR9yYc9rm6uQ+e+=PU_5gL15HdFO47abaA@mail.gmail.com","subject":"RE: How to use multiple SSH keys on Git exe (not bash)","fromName":"Randall S. Becker","fromEmail":"rsbecker@nexbridge.com","sentAt":"2018-01-10T16:23:10Z","receivedAt":"2018-01-10T16:23:23Z","isPatch":false,"sender":{"key":"randall.becker@nexbridge.ca","avatar":"https://avatars.githubusercontent.com/u/28956764?v=4"},"body":"May I, with respect, ask you to take this to the OpenSSH email list? (openssh-unix-dev@mindrot.org)  I think the discussion better belongs there and you're likely to get more detailed information from that team.\nSincerely,\nRandall\n\n> -----Original Message-----\n> From: git-owner@vger.kernel.org [mailto:git-owner@vger.kernel.org] On\n> Behalf Of Sam Millman\n> Sent: January 10, 2018 11:03 AM\n> To: Ævar Arnfjörð Bjarmason <avarab@gmail.com>\n> Cc: git@vger.kernel.org\n> Subject: Re: How to use multiple SSH keys on Git exe (not bash)\n> \n> I actually played a bit more and got this:\n> \n> Host *\n> IdentityFile ~/.ssh/id_rsa_d\n> IdentityFile ~/.ssh/id_rsa\n> \n> Host bitbucket_1\n> User git\n> HostName bitbucket.org\n> IdentityFile ~/.ssh/id_rsa_d\n> \n> Host bitbucket_2\n> User git\n> HostName bitbucket.org\n> IdentityFile ~/.ssh/id_rsa\n> \n> And from basic testing it seems to actually work, it seems it is the Host * that\n> make sit work and it will actually iterate the keys and try them.\n> \n> Not sure why this is, any thoughts?\n> \n> On 10 January 2018 at 15:58, Ævar Arnfjörð Bjarmason <avarab@gmail.com>\n> wrote:\n> >\n> > On Wed, Jan 10 2018, Sam Millman jotted:\n> >\n> >> I am trying, for the sake of PhpStorm, to get multiple SSH keys\n> >> working using git . exe, which means no GitBash.\n> >>\n> >> I can get the keys to work just fine with GitBash.\n> >>\n> >> I edited my .ssh/config to look like (I know this is incorrect):\n> >>\n> >> Host bitucket . org\n> >> IdentityFile ~/.ssh/id_rsa1\n> >>\n> >> Host bitbucket . org\n> >> IdentityFile ~/.ssh/id_rsa\n> >>\n> >>\n> >> And id_rsa1 works, I can actually pick from the other repo. But, of\n> >> course, id_rsa does not now.\n> >>\n> >> I change to:\n> >>\n> >> Host bitucket . org-dd\n> >> HostName bitbucket . org\n> >> IdentityFile ~/.ssh/id_rsa1\n> >>\n> >> Host bitbucket . org-sas\n> >> HostName bitbucket . org\n> >> IdentityFile ~/.ssh/id_rsa\n> >>\n> >> And now only id_rsa works.\n> >>\n> >> I also tried combining the two IdentityFile lines together like so\n> >> (for some reason):\n> >>\n> >> Host bitucket . org\n> >> IdentityFile ~/.ssh/id_rsa1\n> >> IdentityFile ~/.ssh/id_rsa\n> >>\n> >> I have even tried running ssh-agent . exe, adding id_rsa1 to that and\n> >> then running the git clone with no result.\n> >>\n> >> The weird thing is, I have two public keys as well and they both load\n> >> in the ssh . exe (they return errors about format), I just cannot get\n> >> my ssh . exe to work with multiple private keys.\n> >\n> > This might just be a special case of the problem of some hosting\n> > providers picking only the first key you provide, as described in this\n> > thread:\n> > https://public-inbox.org/git/20180103102840.27897-1-avarab@gmail.com/\n> >\n> > If so, you either need to hack around this with ssh host aliases, or a\n> > custom GIT_SSH_COMMAND.\n> >\n> >> On 10 January 2018 at 15:29, Sam Millman <sam.millman@gmail.com>\n> wrote:\n> >>> I am trying, for the sake of PhpStorm, to get multiple SSH keys\n> >>> working using git . exe, which means no GitBash.\n> >>>\n> >>> I can get the keys to work just fine with GitBash.\n> >>>\n> >>> I edited my .ssh/config to look like (I know this is incorrect):\n> >>>\n> >>> Host bitucket . org\n> >>> IdentityFile ~/.ssh/id_rsa1\n> >>>\n> >>> Host bitbucket . org\n> >>> IdentityFile ~/.ssh/id_rsa\n> >>>\n> >>>\n> >>> And id_rsa1 works, I can actually pick from the other repo. But, of\n> >>> course, id_rsa does not now.\n> >>>\n> >>> I change to:\n> >>>\n> >>> Host bitucket . org-dd\n> >>> HostName bitbucket . org\n> >>> IdentityFile ~/.ssh/id_rsa1\n> >>>\n> >>> Host bitbucket . org-sas\n> >>> HostName bitbucket . org\n> >>> IdentityFile ~/.ssh/id_rsa\n> >>>\n> >>> And now only id_rsa works.\n> >>>\n> >>> I also tried combining the two IdentityFile lines together like so\n> >>> (for some\n> >>> reason):\n> >>>\n> >>> Host bitucket . org\n> >>> IdentityFile ~/.ssh/id_rsa1\n> >>> IdentityFile ~/.ssh/id_rsa\n> >>>\n> >>> I have even tried running ssh-agent . exe, adding id_rsa1 to that\n> >>> and then running the git clone with no result.\n> >>>\n> >>> The weird thing is, I have two public keys as well and they both\n> >>> load in the ssh . exe (they return errors about format), I just\n> >>> cannot get my ssh . exe to work with multiple private keys.\n> >>>\n> >>> Has anyone got any ideas on how to solve this?\n\n"},{"id":"336390","messageId":"CALKyTE6S7KQjVUsK03XRPmdNjpEgUfNiCwaDoXu3MYJ_ka=oAg@mail.gmail.com","threadId":"47587","inReplyTo":"00c401d38a2f$51ded390$f59c7ab0$@nexbridge.com","subject":"Re: How to use multiple SSH keys on Git exe (not bash)","fromName":"Sam Millman","fromEmail":"sam.millman@gmail.com","sentAt":"2018-01-10T16:26:17Z","receivedAt":"2018-01-10T16:26:25Z","isPatch":false,"sender":{"key":"sam.millman@gmail.com","avatar":"https://gravatar.com/avatar/2f3e7313ecf48ed6d40c9a138819fd74fb6ebba89aae051b31caaa2f89095d03?d=mp&s=160"},"body":"Does the ssh.exe come from OpenSSH? I thought it was Git's\nimplementation of the SSH protocol\n\nOn 10 January 2018 at 16:23, Randall S. Becker <rsbecker@nexbridge.com> wrote:\n> May I, with respect, ask you to take this to the OpenSSH email list? (openssh-unix-dev@mindrot.org)  I think the discussion better belongs there and you're likely to get more detailed information from that team.\n> Sincerely,\n> Randall\n>\n>> -----Original Message-----\n>> From: git-owner@vger.kernel.org [mailto:git-owner@vger.kernel.org] On\n>> Behalf Of Sam Millman\n>> Sent: January 10, 2018 11:03 AM\n>> To: Ævar Arnfjörð Bjarmason <avarab@gmail.com>\n>> Cc: git@vger.kernel.org\n>> Subject: Re: How to use multiple SSH keys on Git exe (not bash)\n>>\n>> I actually played a bit more and got this:\n>>\n>> Host *\n>> IdentityFile ~/.ssh/id_rsa_d\n>> IdentityFile ~/.ssh/id_rsa\n>>\n>> Host bitbucket_1\n>> User git\n>> HostName bitbucket.org\n>> IdentityFile ~/.ssh/id_rsa_d\n>>\n>> Host bitbucket_2\n>> User git\n>> HostName bitbucket.org\n>> IdentityFile ~/.ssh/id_rsa\n>>\n>> And from basic testing it seems to actually work, it seems it is the Host * that\n>> make sit work and it will actually iterate the keys and try them.\n>>\n>> Not sure why this is, any thoughts?\n>>\n>> On 10 January 2018 at 15:58, Ævar Arnfjörð Bjarmason <avarab@gmail.com>\n>> wrote:\n>> >\n>> > On Wed, Jan 10 2018, Sam Millman jotted:\n>> >\n>> >> I am trying, for the sake of PhpStorm, to get multiple SSH keys\n>> >> working using git . exe, which means no GitBash.\n>> >>\n>> >> I can get the keys to work just fine with GitBash.\n>> >>\n>> >> I edited my .ssh/config to look like (I know this is incorrect):\n>> >>\n>> >> Host bitucket . org\n>> >> IdentityFile ~/.ssh/id_rsa1\n>> >>\n>> >> Host bitbucket . org\n>> >> IdentityFile ~/.ssh/id_rsa\n>> >>\n>> >>\n>> >> And id_rsa1 works, I can actually pick from the other repo. But, of\n>> >> course, id_rsa does not now.\n>> >>\n>> >> I change to:\n>> >>\n>> >> Host bitucket . org-dd\n>> >> HostName bitbucket . org\n>> >> IdentityFile ~/.ssh/id_rsa1\n>> >>\n>> >> Host bitbucket . org-sas\n>> >> HostName bitbucket . org\n>> >> IdentityFile ~/.ssh/id_rsa\n>> >>\n>> >> And now only id_rsa works.\n>> >>\n>> >> I also tried combining the two IdentityFile lines together like so\n>> >> (for some reason):\n>> >>\n>> >> Host bitucket . org\n>> >> IdentityFile ~/.ssh/id_rsa1\n>> >> IdentityFile ~/.ssh/id_rsa\n>> >>\n>> >> I have even tried running ssh-agent . exe, adding id_rsa1 to that and\n>> >> then running the git clone with no result.\n>> >>\n>> >> The weird thing is, I have two public keys as well and they both load\n>> >> in the ssh . exe (they return errors about format), I just cannot get\n>> >> my ssh . exe to work with multiple private keys.\n>> >\n>> > This might just be a special case of the problem of some hosting\n>> > providers picking only the first key you provide, as described in this\n>> > thread:\n>> > https://public-inbox.org/git/20180103102840.27897-1-avarab@gmail.com/\n>> >\n>> > If so, you either need to hack around this with ssh host aliases, or a\n>> > custom GIT_SSH_COMMAND.\n>> >\n>> >> On 10 January 2018 at 15:29, Sam Millman <sam.millman@gmail.com>\n>> wrote:\n>> >>> I am trying, for the sake of PhpStorm, to get multiple SSH keys\n>> >>> working using git . exe, which means no GitBash.\n>> >>>\n>> >>> I can get the keys to work just fine with GitBash.\n>> >>>\n>> >>> I edited my .ssh/config to look like (I know this is incorrect):\n>> >>>\n>> >>> Host bitucket . org\n>> >>> IdentityFile ~/.ssh/id_rsa1\n>> >>>\n>> >>> Host bitbucket . org\n>> >>> IdentityFile ~/.ssh/id_rsa\n>> >>>\n>> >>>\n>> >>> And id_rsa1 works, I can actually pick from the other repo. But, of\n>> >>> course, id_rsa does not now.\n>> >>>\n>> >>> I change to:\n>> >>>\n>> >>> Host bitucket . org-dd\n>> >>> HostName bitbucket . org\n>> >>> IdentityFile ~/.ssh/id_rsa1\n>> >>>\n>> >>> Host bitbucket . org-sas\n>> >>> HostName bitbucket . org\n>> >>> IdentityFile ~/.ssh/id_rsa\n>> >>>\n>> >>> And now only id_rsa works.\n>> >>>\n>> >>> I also tried combining the two IdentityFile lines together like so\n>> >>> (for some\n>> >>> reason):\n>> >>>\n>> >>> Host bitucket . org\n>> >>> IdentityFile ~/.ssh/id_rsa1\n>> >>> IdentityFile ~/.ssh/id_rsa\n>> >>>\n>> >>> I have even tried running ssh-agent . exe, adding id_rsa1 to that\n>> >>> and then running the git clone with no result.\n>> >>>\n>> >>> The weird thing is, I have two public keys as well and they both\n>> >>> load in the ssh . exe (they return errors about format), I just\n>> >>> cannot get my ssh . exe to work with multiple private keys.\n>> >>>\n>> >>> Has anyone got any ideas on how to solve this?\n>\n"},{"id":"336391","messageId":"000e01d38a30$44788a10$cd699e30$@nexbridge.com","threadId":"47587","inReplyTo":"CALKyTE6S7KQjVUsK03XRPmdNjpEgUfNiCwaDoXu3MYJ_ka=oAg@mail.gmail.com","subject":"RE: How to use multiple SSH keys on Git exe (not bash)","fromName":"Randall S. Becker","fromEmail":"rsbecker@nexbridge.com","sentAt":"2018-01-10T16:29:58Z","receivedAt":"2018-01-10T16:30:17Z","isPatch":false,"sender":{"key":"randall.becker@nexbridge.ca","avatar":"https://avatars.githubusercontent.com/u/28956764?v=4"},"body":"OpenSSH generally. Other providers (and platform providers) exist as well. It is hard to know which is really involved, but not git.\n\n> -----Original Message-----\n> From: Sam Millman [mailto:sam.millman@gmail.com]\n> Sent: January 10, 2018 11:26 AM\n> To: Randall S. Becker <rsbecker@nexbridge.com>\n> Cc: Ævar Arnfjörð Bjarmason <avarab@gmail.com>; git@vger.kernel.org\n> Subject: Re: How to use multiple SSH keys on Git exe (not bash)\n> \n> Does the ssh.exe come from OpenSSH? I thought it was Git's implementation\n> of the SSH protocol\n> \n> On 10 January 2018 at 16:23, Randall S. Becker <rsbecker@nexbridge.com>\n> wrote:\n> > May I, with respect, ask you to take this to the OpenSSH email list?\n> (openssh-unix-dev@mindrot.org)  I think the discussion better belongs there\n> and you're likely to get more detailed information from that team.\n> > Sincerely,\n> > Randall\n> >\n> >> -----Original Message-----\n> >> From: git-owner@vger.kernel.org [mailto:git-owner@vger.kernel.org] On\n> >> Behalf Of Sam Millman\n> >> Sent: January 10, 2018 11:03 AM\n> >> To: Ævar Arnfjörð Bjarmason <avarab@gmail.com>\n> >> Cc: git@vger.kernel.org\n> >> Subject: Re: How to use multiple SSH keys on Git exe (not bash)\n> >>\n> >> I actually played a bit more and got this:\n> >>\n> >> Host *\n> >> IdentityFile ~/.ssh/id_rsa_d\n> >> IdentityFile ~/.ssh/id_rsa\n> >>\n> >> Host bitbucket_1\n> >> User git\n> >> HostName bitbucket.org\n> >> IdentityFile ~/.ssh/id_rsa_d\n> >>\n> >> Host bitbucket_2\n> >> User git\n> >> HostName bitbucket.org\n> >> IdentityFile ~/.ssh/id_rsa\n> >>\n> >> And from basic testing it seems to actually work, it seems it is the\n> >> Host * that make sit work and it will actually iterate the keys and try them.\n> >>\n> >> Not sure why this is, any thoughts?\n> >>\n> >> On 10 January 2018 at 15:58, Ævar Arnfjörð Bjarmason\n> >> <avarab@gmail.com>\n> >> wrote:\n> >> >\n> >> > On Wed, Jan 10 2018, Sam Millman jotted:\n> >> >\n> >> >> I am trying, for the sake of PhpStorm, to get multiple SSH keys\n> >> >> working using git . exe, which means no GitBash.\n> >> >>\n> >> >> I can get the keys to work just fine with GitBash.\n> >> >>\n> >> >> I edited my .ssh/config to look like (I know this is incorrect):\n> >> >>\n> >> >> Host bitucket . org\n> >> >> IdentityFile ~/.ssh/id_rsa1\n> >> >>\n> >> >> Host bitbucket . org\n> >> >> IdentityFile ~/.ssh/id_rsa\n> >> >>\n> >> >>\n> >> >> And id_rsa1 works, I can actually pick from the other repo. But,\n> >> >> of course, id_rsa does not now.\n> >> >>\n> >> >> I change to:\n> >> >>\n> >> >> Host bitucket . org-dd\n> >> >> HostName bitbucket . org\n> >> >> IdentityFile ~/.ssh/id_rsa1\n> >> >>\n> >> >> Host bitbucket . org-sas\n> >> >> HostName bitbucket . org\n> >> >> IdentityFile ~/.ssh/id_rsa\n> >> >>\n> >> >> And now only id_rsa works.\n> >> >>\n> >> >> I also tried combining the two IdentityFile lines together like so\n> >> >> (for some reason):\n> >> >>\n> >> >> Host bitucket . org\n> >> >> IdentityFile ~/.ssh/id_rsa1\n> >> >> IdentityFile ~/.ssh/id_rsa\n> >> >>\n> >> >> I have even tried running ssh-agent . exe, adding id_rsa1 to that\n> >> >> and then running the git clone with no result.\n> >> >>\n> >> >> The weird thing is, I have two public keys as well and they both\n> >> >> load in the ssh . exe (they return errors about format), I just\n> >> >> cannot get my ssh . exe to work with multiple private keys.\n> >> >\n> >> > This might just be a special case of the problem of some hosting\n> >> > providers picking only the first key you provide, as described in\n> >> > this\n> >> > thread:\n> >> > https://public-inbox.org/git/20180103102840.27897-1-avarab@gmail.co\n> >> > m/\n> >> >\n> >> > If so, you either need to hack around this with ssh host aliases,\n> >> > or a custom GIT_SSH_COMMAND.\n> >> >\n> >> >> On 10 January 2018 at 15:29, Sam Millman <sam.millman@gmail.com>\n> >> wrote:\n> >> >>> I am trying, for the sake of PhpStorm, to get multiple SSH keys\n> >> >>> working using git . exe, which means no GitBash.\n> >> >>>\n> >> >>> I can get the keys to work just fine with GitBash.\n> >> >>>\n> >> >>> I edited my .ssh/config to look like (I know this is incorrect):\n> >> >>>\n> >> >>> Host bitucket . org\n> >> >>> IdentityFile ~/.ssh/id_rsa1\n> >> >>>\n> >> >>> Host bitbucket . org\n> >> >>> IdentityFile ~/.ssh/id_rsa\n> >> >>>\n> >> >>>\n> >> >>> And id_rsa1 works, I can actually pick from the other repo. But,\n> >> >>> of course, id_rsa does not now.\n> >> >>>\n> >> >>> I change to:\n> >> >>>\n> >> >>> Host bitucket . org-dd\n> >> >>> HostName bitbucket . org\n> >> >>> IdentityFile ~/.ssh/id_rsa1\n> >> >>>\n> >> >>> Host bitbucket . org-sas\n> >> >>> HostName bitbucket . org\n> >> >>> IdentityFile ~/.ssh/id_rsa\n> >> >>>\n> >> >>> And now only id_rsa works.\n> >> >>>\n> >> >>> I also tried combining the two IdentityFile lines together like\n> >> >>> so (for some\n> >> >>> reason):\n> >> >>>\n> >> >>> Host bitucket . org\n> >> >>> IdentityFile ~/.ssh/id_rsa1\n> >> >>> IdentityFile ~/.ssh/id_rsa\n> >> >>>\n> >> >>> I have even tried running ssh-agent . exe, adding id_rsa1 to that\n> >> >>> and then running the git clone with no result.\n> >> >>>\n> >> >>> The weird thing is, I have two public keys as well and they both\n> >> >>> load in the ssh . exe (they return errors about format), I just\n> >> >>> cannot get my ssh . exe to work with multiple private keys.\n> >> >>>\n> >> >>> Has anyone got any ideas on how to solve this?\n> >\n\n"},{"id":"336392","messageId":"CALKyTE7MW1gB2YzT1SuahU4jXnBBzenPJU7rqnBzPGDgchevSw@mail.gmail.com","threadId":"47587","inReplyTo":"000e01d38a30$44788a10$cd699e30$@nexbridge.com","subject":"Re: How to use multiple SSH keys on Git exe (not bash)","fromName":"Sam Millman","fromEmail":"sam.millman@gmail.com","sentAt":"2018-01-10T16:32:25Z","receivedAt":"2018-01-10T16:32:32Z","isPatch":false,"sender":{"key":"sam.millman@gmail.com","avatar":"https://gravatar.com/avatar/2f3e7313ecf48ed6d40c9a138819fd74fb6ebba89aae051b31caaa2f89095d03?d=mp&s=160"},"body":"Aha, thanks, I'll go annoy them :P\n\nOn 10 January 2018 at 16:29, Randall S. Becker <rsbecker@nexbridge.com> wrote:\n> OpenSSH generally. Other providers (and platform providers) exist as well. It is hard to know which is really involved, but not git.\n>\n>> -----Original Message-----\n>> From: Sam Millman [mailto:sam.millman@gmail.com]\n>> Sent: January 10, 2018 11:26 AM\n>> To: Randall S. Becker <rsbecker@nexbridge.com>\n>> Cc: Ævar Arnfjörð Bjarmason <avarab@gmail.com>; git@vger.kernel.org\n>> Subject: Re: How to use multiple SSH keys on Git exe (not bash)\n>>\n>> Does the ssh.exe come from OpenSSH? I thought it was Git's implementation\n>> of the SSH protocol\n>>\n>> On 10 January 2018 at 16:23, Randall S. Becker <rsbecker@nexbridge.com>\n>> wrote:\n>> > May I, with respect, ask you to take this to the OpenSSH email list?\n>> (openssh-unix-dev@mindrot.org)  I think the discussion better belongs there\n>> and you're likely to get more detailed information from that team.\n>> > Sincerely,\n>> > Randall\n>> >\n>> >> -----Original Message-----\n>> >> From: git-owner@vger.kernel.org [mailto:git-owner@vger.kernel.org] On\n>> >> Behalf Of Sam Millman\n>> >> Sent: January 10, 2018 11:03 AM\n>> >> To: Ævar Arnfjörð Bjarmason <avarab@gmail.com>\n>> >> Cc: git@vger.kernel.org\n>> >> Subject: Re: How to use multiple SSH keys on Git exe (not bash)\n>> >>\n>> >> I actually played a bit more and got this:\n>> >>\n>> >> Host *\n>> >> IdentityFile ~/.ssh/id_rsa_d\n>> >> IdentityFile ~/.ssh/id_rsa\n>> >>\n>> >> Host bitbucket_1\n>> >> User git\n>> >> HostName bitbucket.org\n>> >> IdentityFile ~/.ssh/id_rsa_d\n>> >>\n>> >> Host bitbucket_2\n>> >> User git\n>> >> HostName bitbucket.org\n>> >> IdentityFile ~/.ssh/id_rsa\n>> >>\n>> >> And from basic testing it seems to actually work, it seems it is the\n>> >> Host * that make sit work and it will actually iterate the keys and try them.\n>> >>\n>> >> Not sure why this is, any thoughts?\n>> >>\n>> >> On 10 January 2018 at 15:58, Ævar Arnfjörð Bjarmason\n>> >> <avarab@gmail.com>\n>> >> wrote:\n>> >> >\n>> >> > On Wed, Jan 10 2018, Sam Millman jotted:\n>> >> >\n>> >> >> I am trying, for the sake of PhpStorm, to get multiple SSH keys\n>> >> >> working using git . exe, which means no GitBash.\n>> >> >>\n>> >> >> I can get the keys to work just fine with GitBash.\n>> >> >>\n>> >> >> I edited my .ssh/config to look like (I know this is incorrect):\n>> >> >>\n>> >> >> Host bitucket . org\n>> >> >> IdentityFile ~/.ssh/id_rsa1\n>> >> >>\n>> >> >> Host bitbucket . org\n>> >> >> IdentityFile ~/.ssh/id_rsa\n>> >> >>\n>> >> >>\n>> >> >> And id_rsa1 works, I can actually pick from the other repo. But,\n>> >> >> of course, id_rsa does not now.\n>> >> >>\n>> >> >> I change to:\n>> >> >>\n>> >> >> Host bitucket . org-dd\n>> >> >> HostName bitbucket . org\n>> >> >> IdentityFile ~/.ssh/id_rsa1\n>> >> >>\n>> >> >> Host bitbucket . org-sas\n>> >> >> HostName bitbucket . org\n>> >> >> IdentityFile ~/.ssh/id_rsa\n>> >> >>\n>> >> >> And now only id_rsa works.\n>> >> >>\n>> >> >> I also tried combining the two IdentityFile lines together like so\n>> >> >> (for some reason):\n>> >> >>\n>> >> >> Host bitucket . org\n>> >> >> IdentityFile ~/.ssh/id_rsa1\n>> >> >> IdentityFile ~/.ssh/id_rsa\n>> >> >>\n>> >> >> I have even tried running ssh-agent . exe, adding id_rsa1 to that\n>> >> >> and then running the git clone with no result.\n>> >> >>\n>> >> >> The weird thing is, I have two public keys as well and they both\n>> >> >> load in the ssh . exe (they return errors about format), I just\n>> >> >> cannot get my ssh . exe to work with multiple private keys.\n>> >> >\n>> >> > This might just be a special case of the problem of some hosting\n>> >> > providers picking only the first key you provide, as described in\n>> >> > this\n>> >> > thread:\n>> >> > https://public-inbox.org/git/20180103102840.27897-1-avarab@gmail.co\n>> >> > m/\n>> >> >\n>> >> > If so, you either need to hack around this with ssh host aliases,\n>> >> > or a custom GIT_SSH_COMMAND.\n>> >> >\n>> >> >> On 10 January 2018 at 15:29, Sam Millman <sam.millman@gmail.com>\n>> >> wrote:\n>> >> >>> I am trying, for the sake of PhpStorm, to get multiple SSH keys\n>> >> >>> working using git . exe, which means no GitBash.\n>> >> >>>\n>> >> >>> I can get the keys to work just fine with GitBash.\n>> >> >>>\n>> >> >>> I edited my .ssh/config to look like (I know this is incorrect):\n>> >> >>>\n>> >> >>> Host bitucket . org\n>> >> >>> IdentityFile ~/.ssh/id_rsa1\n>> >> >>>\n>> >> >>> Host bitbucket . org\n>> >> >>> IdentityFile ~/.ssh/id_rsa\n>> >> >>>\n>> >> >>>\n>> >> >>> And id_rsa1 works, I can actually pick from the other repo. But,\n>> >> >>> of course, id_rsa does not now.\n>> >> >>>\n>> >> >>> I change to:\n>> >> >>>\n>> >> >>> Host bitucket . org-dd\n>> >> >>> HostName bitbucket . org\n>> >> >>> IdentityFile ~/.ssh/id_rsa1\n>> >> >>>\n>> >> >>> Host bitbucket . org-sas\n>> >> >>> HostName bitbucket . org\n>> >> >>> IdentityFile ~/.ssh/id_rsa\n>> >> >>>\n>> >> >>> And now only id_rsa works.\n>> >> >>>\n>> >> >>> I also tried combining the two IdentityFile lines together like\n>> >> >>> so (for some\n>> >> >>> reason):\n>> >> >>>\n>> >> >>> Host bitucket . org\n>> >> >>> IdentityFile ~/.ssh/id_rsa1\n>> >> >>> IdentityFile ~/.ssh/id_rsa\n>> >> >>>\n>> >> >>> I have even tried running ssh-agent . exe, adding id_rsa1 to that\n>> >> >>> and then running the git clone with no result.\n>> >> >>>\n>> >> >>> The weird thing is, I have two public keys as well and they both\n>> >> >>> load in the ssh . exe (they return errors about format), I just\n>> >> >>> cannot get my ssh . exe to work with multiple private keys.\n>> >> >>>\n>> >> >>> Has anyone got any ideas on how to solve this?\n>> >\n>\n"}]}