1.account1-username
2.account2-username
1. id_rsa for account1-username (ssh-keygen -C "your_email@example.com")
2 id_ed25519 for account2-username (ssh-keygen -t ed25519 -C "your_email@example.com")
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 -> git@github.com: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 -> git@github.com: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