1.account1-username
2.account2-username
1. id_rsa for account1-username (ssh-keygen -C "[email protected]")
2 id_ed25519 for account2-username (ssh-keygen -t ed25519 -C "[email protected]")
Host account1
HostName github.com
IdentityFile ~/.ssh/id_rsa # add path to your private key for account1-username
Host account2
HostName github.com
IdentityFile ~/.ssh/id_ed25519 # add path to your private key for account2-unsername
1. For account1-username having repo ssh link -> [email protected]:account1-username/repo.git
a. replace github.com with Host in config file with respective account, for account1-username -> account1
> git clone git@account1:account1-username.git
2. For account2-username haveing repo ssh link -> [email protected]:account2-username/repo.git
a. replace github.com with Host in config file with respective account, for account2-username -> account2
> git clone git@account2:account2-username.git