On 30. Aug 2019, at 19:48, Marshall Schor <[email protected]> wrote:
> 
>> However, I am not aware of github.com supporting multiple authentication
>> mechanisms. Are you sure your work doesn't use a private (hosted or cloud) 
>> GitHub
>> instance? 
> Yes it does use a separate private GitHub.

I'm using git repos from public (github.com) as well as private (private gitlab
instance). It never seemed to be much of an issue. Most of the time, I use
https-based access and as far as I know, my client (Sourcetree) stores the
credentials in the OS X KeyChain. But I *believe* one could also set up 
public-key based authentication and git (or rather ssh) should be able to
figure out which key it needs to use if you have multiple - either automatically
if they are loaded into the agent or otherwise if you manually put them into 
your
~/ssh/.config file:

Host githost.dummy.org
   User johnsmith
   IdentitiesOnly yes
   IdentityFile ~/.ssh/private_key_file_for_dummy_org

Cheers,

-- Richard

Reply via email to